Blame SOURCES/0011-build-add-Wextra-to-default-CFLAGS.patch

4f6fcd
From 0d042007945d6fadb9b59ce8d01502575689067d Mon Sep 17 00:00:00 2001
4f6fcd
From: Michal Kubecek <mkubecek@suse.cz>
4f6fcd
Date: Sun, 23 Aug 2020 21:40:42 +0200
4f6fcd
Subject: [PATCH 11/17] build: add -Wextra to default CFLAGS
4f6fcd
4f6fcd
As a result of previous commits, ethtool source now builds with gcc
4f6fcd
versions 7-11 without any compiler warning with "-Wall -Wextra". Add
4f6fcd
"-Wextra" to default cflags to make sure that any new warnings are
4f6fcd
caught as early as possible.
4f6fcd
4f6fcd
Suggested-by: Andrew Lunn <andrew@lunn.ch>
4f6fcd
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
4f6fcd
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
4f6fcd
(cherry picked from commit 257d90cd946699c0951b670576d2d63a12b92541)
4f6fcd
---
4f6fcd
 Makefile.am | 2 +-
4f6fcd
 1 file changed, 1 insertion(+), 1 deletion(-)
4f6fcd
4f6fcd
diff --git a/Makefile.am b/Makefile.am
4f6fcd
index 2abb2742c335..099182e8d6ad 100644
4f6fcd
--- a/Makefile.am
4f6fcd
+++ b/Makefile.am
4f6fcd
@@ -1,4 +1,4 @@
4f6fcd
-AM_CFLAGS = -Wall
4f6fcd
+AM_CFLAGS = -Wall -Wextra
4f6fcd
 AM_CPPFLAGS = -I$(top_srcdir)/uapi
4f6fcd
 LDADD = -lm
4f6fcd
 
4f6fcd
-- 
4f6fcd
2.26.2
4f6fcd