xcompile: Apply -Wextra with temporary exceptions to GCC
commit17968caa94aa345affcc14e6f6db2605d31535e3
authorFelix Singer <felixsinger@posteo.net>
Wed, 3 Jul 2024 14:04:19 +0000 (3 16:04 +0200)
committerFelix Singer <felixsinger@posteo.net>
Thu, 1 Aug 2024 20:22:53 +0000 (1 20:22 +0000)
tree59191c43de152381707d5a9d5bfda1701e75f3ad
parent0dba005f04c1e285e7745a9e3a16ef068563e3ee
xcompile: Apply -Wextra with temporary exceptions to GCC

In order to detect more issues in our code, make GCC more picky by
enabling -Wextra. Disable a couple of warnings turned on by -Wextra
temporarily in order to keep everything compiling and working for now.
The warnings may be enabled step by step later.

Since xcompiles applies to coreboot and libpayload, add Wextra here
instead of the top-level Makefile.mk.

Change-Id: I60915cb66581dc2c9b6807335fd0e214b45e76d6
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83347
Reviewed-by: Martin L Roth <gaumless@gmail.com>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
util/xcompile/xcompile