summaryrefslogtreecommitdiffstats
path: root/config/Rules.am
diff options
context:
space:
mode:
authorArvind Sankar <[email protected]>2020-06-16 19:46:04 -0400
committerBrian Behlendorf <[email protected]>2020-06-18 12:21:53 -0700
commitae7b167a98b48260554fd88cef022547283e125f (patch)
treed1d1c10c41d074fa97f5eead53dbcf0a68ea4c22 /config/Rules.am
parentc0673571d03a51d9ac014ecb8cbb7a6ca9dee384 (diff)
Enable -Wmissing-prototypes/-Wstrict-prototypes
Switch on warning flags to detect mismatch between declaration and definition. Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Arvind Sankar <[email protected]> Closes #10470
Diffstat (limited to 'config/Rules.am')
-rw-r--r--config/Rules.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/Rules.am b/config/Rules.am
index 168cecea2..fbbca81e6 100644
--- a/config/Rules.am
+++ b/config/Rules.am
@@ -21,7 +21,8 @@ endif
AM_LIBTOOLFLAGS = --silent
-AM_CFLAGS = -std=gnu99 -Wall -Wstrict-prototypes -fno-strict-aliasing
+AM_CFLAGS = -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes
+AM_CFLAGS += -fno-strict-aliasing
AM_CFLAGS += $(NO_OMIT_FRAME_POINTER)
AM_CFLAGS += $(DEBUG_CFLAGS)
AM_CFLAGS += $(ASAN_CFLAGS)