aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Kubecek <mkubecek@suse.cz>2020-08-23 21:40:42 +0200
committerMichal Kubecek <mkubecek@suse.cz>2020-08-27 10:52:16 +0200
commit257d90cd946699c0951b670576d2d63a12b92541 (patch)
tree651ed3ae092f27470ebf015a593ff1de6b0ce873
parent0c43dec5cf64aee41bbd4195c96671032ea6556d (diff)
downloadethtool-257d90cd946699c0951b670576d2d63a12b92541.tar.gz
build: add -Wextra to default CFLAGS
As a result of previous commits, ethtool source now builds with gcc versions 7-11 without any compiler warning with "-Wall -Wextra". Add "-Wextra" to default cflags to make sure that any new warnings are caught as early as possible. Suggested-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Michal Kubecek <mkubecek@suse.cz> Reviewed-by: Andrew Lunn <andrew@lunn.ch>
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 38dde09..aca0ad7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-AM_CFLAGS = -Wall
+AM_CFLAGS = -Wall -Wextra
AM_CPPFLAGS = -I$(top_srcdir)/uapi
LDADD = -lm