| commit | b83241ff4d9b099ff72d46871a5a8121669819c0 | [log] [tgz] |
|---|---|---|
| author | Victor Zverovich <victor.zverovich@gmail.com> | Thu Oct 19 07:28:17 2017 -0700 |
| committer | Victor Zverovich <victor.zverovich@gmail.com> | Thu Oct 19 07:36:46 2017 -0700 |
| tree | 5fe52d615138639f4b5fe0763457fd647bcebfd0 | |
| parent | bd5188c811e408ed88961e9ed1e7986c40c04e2a [diff] [blame] |
Make format spec parsing constexpr
diff --git a/fmt/format.cc b/fmt/format.cc index e759084..bd12cb9 100644 --- a/fmt/format.cc +++ b/fmt/format.cc
@@ -58,9 +58,11 @@ # define FMT_CATCH(x) if (false) #endif +#ifdef __GNUC__ // Disable the warning about declaration shadowing because it affects too // many valid cases. -#pragma GCC diagnostic ignored "-Wshadow" +# pragma GCC diagnostic ignored "-Wshadow" +#endif #ifdef _MSC_VER # pragma warning(push)