From aa4df026d44bd205f8bfce8a3b8d6a1144332f32 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Mon, 30 Jun 2014 19:30:49 -0700 Subject: Finally get around to decoupling the warning system --- src/io/cxxstdio.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/io/cxxstdio.hpp') diff --git a/src/io/cxxstdio.hpp b/src/io/cxxstdio.hpp index 66c2aa8..a8343c0 100644 --- a/src/io/cxxstdio.hpp +++ b/src/io/cxxstdio.hpp @@ -131,11 +131,13 @@ namespace cxxstdio {} ~EnumConverter() { -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wtype-limits" + DIAG_PUSH(); + DIAG_I(type_limits); if (min_value <= mid && mid <= max_value) -#pragma GCC diagnostic pop + { + DIAG_POP(); out = E(mid); + } } U *operator &() { -- cgit v1.2.3-60-g2f50