Suppress shadowing warnings

This commit is contained in:
Victor Zverovich committed 2017-08-26 08:50:09 -07:00
1 parent 466386d5cd
commit 07f8ffc44f
2 files changed
+11 -7

No files matched your search

+4
View File
@@ -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