From fec4c1684e8680285f51ebd4898fe35127c7e098 Mon Sep 17 00:00:00 2001 From: Oxore Date: Sun, 18 Feb 2024 21:18:23 +0300 Subject: Refactor CMakeLists.txt and fix new warnings --- src/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index a6f73b3..89aa2ea 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -8,7 +8,15 @@ #define OPTPARSE_IMPLEMENTATION #define OPTPARSE_API static +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wold-style-cast" +#pragma GCC diagnostic ignored "-Wshadow" +#endif #include "optparse/optparse.h" +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif #include #include -- cgit v1.2.3