mirror of
https://github.com/biojppm/rapidyaml.git
synced 2026-01-18 21:41:18 +01:00
[fix] pedantic compiler warnings
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user