summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2024-02-18 21:18:23 +0300
committerOxore <oxore@protonmail.com>2024-02-18 21:18:23 +0300
commitfec4c1684e8680285f51ebd4898fe35127c7e098 (patch)
tree62d4191931edd6584c77049d0ca653005065fc8d /src/main.cpp
parent21a9aa92a7cf8767a0fcb33858546dea744c4071 (diff)
Refactor CMakeLists.txt and fix new warnings
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
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>