summaryrefslogtreecommitdiff
path: root/src/warnings.hpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-07-01 18:00:38 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-07-01 18:00:38 -0700
commit17605f7782ac9a73a3dacf6ce27e5dae36160f01 (patch)
tree31acbe279cc6f51730d6f509648ec3ab7d8e43a9 /src/warnings.hpp
parente6db8d726bb971bdc7704d29cd26d80bc299da5a (diff)
downloadtmwa-17605f7782ac9a73a3dacf6ce27e5dae36160f01.tar.gz
tmwa-17605f7782ac9a73a3dacf6ce27e5dae36160f01.tar.bz2
tmwa-17605f7782ac9a73a3dacf6ce27e5dae36160f01.tar.xz
tmwa-17605f7782ac9a73a3dacf6ce27e5dae36160f01.zip
In order to disable them, diagnostic header must be public and included
Diffstat (limited to 'src/warnings.hpp')
-rw-r--r--src/warnings.hpp7
1 files changed, 6 insertions, 1 deletions
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);