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:
parent
f5c5d7f36f
commit
c6deadf61d
@ -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 \
|
||||
|
1
toml.hpp
1
toml.hpp
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user