[fix] pedantic compiler warnings

This commit is contained in:
Joao Paulo Magalhaes
2023-05-05 17:37:57 +01:00
parent aa484b56bb
commit 64187baad8
21 changed files with 108 additions and 35 deletions

View File

@@ -14,6 +14,8 @@
using namespace c4;
C4_SUPPRESS_WARNING_GCC_CLANG_WITH_PUSH("-Wold-style-cast")
//-----------------------------------------------------------------------------
struct timed_section
@@ -114,3 +116,5 @@ int main(int argc, const char *argv[])
return 0;
}
C4_SUPPRESS_WARNING_GCC_CLANG_POP

View File

@@ -9,6 +9,8 @@
#include <cstdio>
#include <stdexcept>
C4_SUPPRESS_WARNING_GCC_CLANG_WITH_PUSH("-Wold-style-cast")
using namespace c4;
using namespace c4::yml;
@@ -90,3 +92,5 @@ void report_error(const char* msg, size_t length, Location loc, FILE *f)
fprintf(f, "%.*s\n", (int)length, msg);
fflush(f);
}
C4_SUPPRESS_WARNING_GCC_CLANG_POP