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

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