Elyes Haouas has uploaded this change for review.

View Change

Makefile.inc: Enable Wxor-used-as-pow command option

warns about uses of the exclusive or operator, where it appears the user
meant exponentiation.

Change-Id: I6ae83c676ab347510f5dfa7d34a7b04ee439e9b6
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
---
M Makefile.inc
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/15/79915/1
diff --git a/Makefile.inc b/Makefile.inc
index 23f56a4..e7be9e5 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -498,7 +498,7 @@
CFLAGS_common += -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer
CFLAGS_common += -fstrict-aliasing -ffunction-sections -fdata-sections -fno-pie
ifeq ($(CONFIG_COMPILER_GCC),y)
-CFLAGS_common += -Wold-style-declaration
+CFLAGS_common += -Wold-style-declaration -Wxor-used-as-pow
# Don't add these GCC specific flags when running scan-build
ifeq ($(CCC_ANALYZER_OUTPUT_FORMAT),)
CFLAGS_common += -Wno-packed-not-aligned

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

Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I6ae83c676ab347510f5dfa7d34a7b04ee439e9b6
Gerrit-Change-Number: 79915
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes Haouas <ehaouas@noos.fr>
Gerrit-MessageType: newchange