Nico Huber submitted this change.

View Change

Approvals: build bot (Jenkins): Verified Jacob Garber: Looks good to me, approved
Makefile,meson.build: Enable/assume -Wextra

Enable all -Wextra warnings but -Wunused-parameter. Nobody seems to
miss warnings about unused parameters and we have a lot unavoidable
occurrences in flashrom because of common interfaces.

Change-Id: Id2ece264c2d483e34019985dd3a7631c4889abe6
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/30411
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jacob Garber <jgarber1@ualberta.ca>
---
M Makefile
M meson.build
2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index b0c242d..f0a1b61 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@
DIFF = diff
PREFIX ?= /usr/local
MANDIR ?= $(PREFIX)/share/man
-CFLAGS ?= -Os -Wall -Wshadow -Wmissing-prototypes -Wwrite-strings
+CFLAGS ?= -Os -Wall -Wextra -Wno-unused-parameter -Wshadow -Wmissing-prototypes -Wwrite-strings
EXPORTDIR ?= .
RANLIB ?= ranlib
PKG_CONFIG ?= pkg-config
diff --git a/meson.build b/meson.build
index fda1ab8..ca52ccf 100644
--- a/meson.build
+++ b/meson.build
@@ -15,10 +15,8 @@
warning_flags = [
'-Wwrite-strings',
'-Wno-unused-parameter',
- '-Wno-sign-compare',
'-Wno-address-of-packed-member',
'-Wno-enum-conversion',
- '-Wno-missing-field-initializers',
'-Wno-missing-braces',
]


To view, visit change 30411. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Id2ece264c2d483e34019985dd3a7631c4889abe6
Gerrit-Change-Number: 30411
Gerrit-PatchSet: 10
Gerrit-Owner: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: David Hendricks <david.hendricks@gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-Reviewer: Jacob Garber <jgarber1@ualberta.ca>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Mario Limonciello <superm1@gmail.com>
Gerrit-MessageType: merged