Fixes for some pedantic warnings (#1054)

* Fix order of initializers

* Remove unused parameter

* Disable warning "-Wswitch-enum"
This commit is contained in:
Brian
2019-02-23 09:40:08 -10:00
committed by Victor Zverovich
parent 8af651be39
commit 327d4b6e9e
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -62,6 +62,10 @@
#if FMT_GCC_VERSION >= 406 || FMT_CLANG_VERSION
# pragma GCC diagnostic push
// Disable warning about not handling all enums in switch statement even with
// a default case
# pragma GCC diagnostic ignored "-Wswitch-enum"
// Disable the warning about declaration shadowing because it affects too
// many valid cases.
# pragma GCC diagnostic ignored "-Wshadow"