|
@@ -6,6 +6,10 @@
|
|
|
|
|
|
#include "utils/Types.h"
|
|
#include "utils/Types.h"
|
|
|
|
|
|
|
|
+// ignore buffer overflow warnings with snprintf
|
|
|
|
+#pragma GCC diagnostic push
|
|
|
|
+#pragma GCC diagnostic ignored "-Wformat-truncation"
|
|
|
|
+
|
|
template<int N>
|
|
template<int N>
|
|
class StringBuffer final {
|
|
class StringBuffer final {
|
|
int length;
|
|
int length;
|
|
@@ -202,4 +206,6 @@ bool operator!=(const char* str, const StringBuffer<N> buffer) {
|
|
return buffer != str;
|
|
return buffer != str;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#pragma GCC diagnostic pop
|
|
|
|
+
|
|
#endif
|
|
#endif
|