aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-02-27 17:08:33 -0500
committerTom Rini <trini@konsulko.com>2023-03-22 15:22:48 -0400
commit52ee1a0294e8657fc8d18c1ff20cf2b1a41457ef (patch)
treefc2f69cdd0377238cbcc996c297b0da233390106 /Makefile
parent12340b122b354ecca350c0d08ac3d825897bdafa (diff)
downloadu-boot-52ee1a0294e8657fc8d18c1ff20cf2b1a41457ef.zip
u-boot-52ee1a0294e8657fc8d18c1ff20cf2b1a41457ef.tar.gz
u-boot-52ee1a0294e8657fc8d18c1ff20cf2b1a41457ef.tar.bz2
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 <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 613b2c6..c0be3e9 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.