aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris PeBenito <pebenito@ieee.org>2017-02-18 13:59:33 -0500
committerJason Zaman <jason@perfinion.com>2017-02-21 15:03:24 +0800
commitd95bd051d23600ea746b71790ef5184e71d34ddd (patch)
tree2ec5c8c8570f54638a3ad59f55abe57a4b8f1e2f /support
parentModule version bump for hostname fix from cgzones. (diff)
downloadhardened-refpolicy-d95bd051d23600ea746b71790ef5184e71d34ddd.tar.gz
hardened-refpolicy-d95bd051d23600ea746b71790ef5184e71d34ddd.tar.bz2
hardened-refpolicy-d95bd051d23600ea746b71790ef5184e71d34ddd.zip
Only display the WERROR notice if there actually are errors.
Diffstat (limited to 'support')
-rw-r--r--support/fatal_error.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/support/fatal_error.m4 b/support/fatal_error.m4
index 8b01dc26..edf39ee7 100644
--- a/support/fatal_error.m4
+++ b/support/fatal_error.m4
@@ -1,2 +1,4 @@
-ifdef(`m4_werror',`errprint(__file__: Notice: Treating warnings as errors.__endline__)')
-ifdef(`m4_fatal_error',`m4exit(`1')')
+ifdef(`m4_fatal_error',`
+ ifdef(`m4_werror',`errprint(__file__: Notice: Treating warnings as errors.__endline__)')
+ m4exit(`1')
+')