aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris PeBenito <pebenito@ieee.org>2017-02-18 10:20:20 -0500
committerJason Zaman <jason@perfinion.com>2017-02-21 14:55:55 +0800
commit99249f103339619913cf5c17abb8fd0fd893d9b0 (patch)
tree4b87cdba9747a1c3c46695e247ec464b0d686493 /support
parentLittle misc patches from Russell Coker. (diff)
downloadhardened-refpolicy-99249f103339619913cf5c17abb8fd0fd893d9b0.tar.gz
hardened-refpolicy-99249f103339619913cf5c17abb8fd0fd893d9b0.tar.bz2
hardened-refpolicy-99249f103339619913cf5c17abb8fd0fd893d9b0.zip
Implement WERROR build option to treat warnings as errors.
Add this to all Travis-CI builds.
Diffstat (limited to 'support')
-rw-r--r--support/fatal_error.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/support/fatal_error.m4 b/support/fatal_error.m4
new file mode 100644
index 00000000..8b01dc26
--- /dev/null
+++ b/support/fatal_error.m4
@@ -0,0 +1,2 @@
+ifdef(`m4_werror',`errprint(__file__: Notice: Treating warnings as errors.__endline__)')
+ifdef(`m4_fatal_error',`m4exit(`1')')