diff options
author | Oxore <oxore@protonmail.com> | 2024-02-18 21:18:23 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2024-02-18 21:18:23 +0300 |
commit | fec4c1684e8680285f51ebd4898fe35127c7e098 (patch) | |
tree | 62d4191931edd6584c77049d0ca653005065fc8d /src/main.cpp | |
parent | 21a9aa92a7cf8767a0fcb33858546dea744c4071 (diff) |
Refactor CMakeLists.txt and fix new warnings
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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 <cassert> #include <cinttypes> |