Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jarro2783/cxxopts.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarryd Beck <jarro.2783@gmail.com>2022-07-20 10:37:37 +0300
committerJarryd Beck <jarro.2783@gmail.com>2022-07-20 10:37:37 +0300
commit83aecd628ede1bf1b477c945ea6338efc4490be8 (patch)
tree032f3df8ba4a860da7086e49ead01adfce4e239c
parent6c8a41a229e133e6f9a0f5c9b490870afc1a31f1 (diff)
Fix pragmas
-rw-r--r--include/cxxopts.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp
index d3bc5a5..0b4bd07 100644
--- a/include/cxxopts.hpp
+++ b/include/cxxopts.hpp
@@ -85,7 +85,7 @@ THE SOFTWARE.
#define DO_PRAGMA(x) _Pragma(#x)
#define CXXOPTS_DIAGNOSTIC_PUSH DO_PRAGMA(GCC diagnostic push)
#define CXXOPTS_DIAGNOSTIC_POP DO_PRAGMA(GCC diagnostic pop)
-#define CXXOPTS_IGNORE_WARNING(x) DO_PRAGMA(GCC diagnostic ignored #x)
+#define CXXOPTS_IGNORE_WARNING(x) DO_PRAGMA(GCC diagnostic ignored x)
#endif
namespace cxxopts {