Suppress shadowing warnings
This commit is contained in:
1 parent
466386d5cd
commit
07f8ffc44f
2 files changed
+11
-7
No files matched your search
@@ -58,6 +58,10 @@
|
||||
# define FMT_CATCH(x) if (false)
|
||||
#endif
|
||||
|
||||
// Disable the warning about declaration shadowing because it affects too
|
||||
// many valid cases.
|
||||
#pragma GCC diagnostic ignored "-Wshadow"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# pragma warning(push)
|
||||
# pragma warning(disable: 4127) // conditional expression is constant
|
||||
|
||||
Reference in new issue
Block a user