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/ints/cmp.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ints/cmp.hpp') diff --git a/src/ints/cmp.hpp b/src/ints/cmp.hpp index 16384e6..58a33b4 100644 --- a/src/ints/cmp.hpp +++ b/src/ints/cmp.hpp @@ -27,8 +27,8 @@ namespace tmwa { namespace ints { -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wtype-limits" + DIAG_PUSH(); + DIAG_I(type_limits); template T saturate(const U& v) { @@ -62,7 +62,7 @@ namespace ints return v; } } -#pragma GCC diagnostic pop + DIAG_POP(); } // namespace ints using ints::saturate; -- cgit v1.2.3-70-g09d2