Suppress -Wduplicated-branches (#171)

Solves:
tomlplusplus/include/toml++/impl/path.h:29:73: warning: this condition has identical branches [-Wduplicated-branches]
   29 |                                 (alignof(size_t) < alignof(std::string) ? alignof(std::string) : alignof(size_t));
This commit is contained in:
Björn Schäpers 2022-09-12 10:55:42 +02:00 committed by GitHub
parent f5c5d7f36f
commit c6deadf61d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -577,6 +577,7 @@
TOML_PRAGMA_GCC(diagnostic ignored "-Wmaybe-uninitialized") \
TOML_PRAGMA_GCC(diagnostic ignored "-Wnoexcept") \
TOML_PRAGMA_GCC(diagnostic ignored "-Wnull-dereference") \
TOML_PRAGMA_GCC(diagnostic ignored "-Wduplicated-branches") \
static_assert(true)
#define TOML_POP_WARNINGS \

View File

@ -607,6 +607,7 @@
TOML_PRAGMA_GCC(diagnostic ignored "-Wmaybe-uninitialized") \
TOML_PRAGMA_GCC(diagnostic ignored "-Wnoexcept") \
TOML_PRAGMA_GCC(diagnostic ignored "-Wnull-dereference") \
TOML_PRAGMA_GCC(diagnostic ignored "-Wduplicated-branches") \
static_assert(true)
#define TOML_POP_WARNINGS \