summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2015-09-22 22:27:01 +0200
committerMark Wielaard <mjw@redhat.com>2015-09-23 15:50:55 +0200
commit1ccdfb683ad6c7e59793136c3a657ddf131cafd1 (patch)
treed5d24ce4ca0beec37e1ee2fe1f8a36af0e218e28 /config
parente260d79d73be07aee2860c5a5baf4f12c230ad6b (diff)
Remove old-style function definitions.
We already require -std=gnu99 and old-style function definitions might hide some compiler warnings. Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'config')
-rw-r--r--config/ChangeLog4
-rw-r--r--config/eu.am1
2 files changed, 5 insertions, 0 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
index 31eeca7a..067af115 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2015-09-22 Mark Wielaard <mjw@redhat.com>
+
+ * eu.am (AM_CFLAGS): Add -Wold-style-definition -Wstrict-prototypes.
+
2015-08-04 Mark Wielaard <mjw@redhat.com>
* 10-default-yama-scope.conf: New file.
diff --git a/config/eu.am b/config/eu.am
index 70d32deb..441b68dd 100644
--- a/config/eu.am
+++ b/config/eu.am
@@ -39,6 +39,7 @@ else
STACK_USAGE_WARNING=
endif
AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
+ -Wold-style-definition -Wstrict-prototypes \
$(if $($(*F)_no_Werror),,-Werror) \
$(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
$(if $($(*F)_no_Wstack_usage),,$(STACK_USAGE_WARNING)) \