From: Tom Rini Date: Mon, 27 Feb 2023 22:08:33 +0000 (-0500) Subject: global: Disable deprecated-non-prototype warning with clang X-Git-Tag: baikal/mips/sdk6.2~4^2~3^2~175^2~25^2~9 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=e9345d425a12a38a63378b8a554951d9bbb53f14;p=uboot.git global: Disable deprecated-non-prototype warning with clang We have a number of places in the code which use the following syntax: void func(a, b, c) int a; /* Does a */ something_t *b; /* Pointer to b */ int c; /* Does c */ { ... } Which while not what we document as our coding style, this is also code which we have imported from other projects, and would like to re-sync with in the future. While the biggest example of this is the zlib code, there are other places as well. For now, we will silence this warning. Signed-off-by: Tom Rini Reviewed-by: Simon Glass --- diff --git a/Makefile b/Makefile index 613b2c6672..c0be3e9c44 100644 --- a/Makefile +++ b/Makefile @@ -790,6 +790,7 @@ KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare) # See modpost pattern 2 KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,) KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior) +KBUILD_CFLAGS += $(call cc-disable-warning, deprecated-non-prototype) endif # These warnings generated too much noise in a regular build.