From 17605f7782ac9a73a3dacf6ce27e5dae36160f01 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Tue, 1 Jul 2014 18:00:38 -0700 Subject: In order to disable them, diagnostic header must be public and included --- src/warnings.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/warnings.hpp') diff --git a/src/warnings.hpp b/src/warnings.hpp index e5fcf2d..9389766 100644 --- a/src/warnings.hpp +++ b/src/warnings.hpp @@ -23,11 +23,16 @@ // just mention "fwd.hpp" to make formatter happy -#include "warning_list.hpp" +#include "diagnostics.hpp" namespace tmwa { +PRAGMA(GCC diagnostic warning "-Wall"); +PRAGMA(GCC diagnostic warning "-Wextra"); +PRAGMA(GCC diagnostic warning "-Wunused"); +PRAGMA(GCC diagnostic warning "-Wformat"); + DIAG_E(abi); DIAG_W(abi_tag); DIAG_E(address); -- cgit v1.2.3-60-g2f50