From 193bd742b5ebd2db5ef146ede68ba53e9a1b1c6b Mon Sep 17 00:00:00 2001 From: Elliot Berman Date: Wed, 6 Jan 2021 10:15:40 -0800 Subject: [PATCH] gcc-wrapper.py: Add warning bcache.h exemption Exempt the following warning from upstream UAPI header: ./usr/include/linux/bcache.h:354:2: warning: field '' with variable sized type 'union jset::(anonymous at ./usr/include/linux/bcache.h:354:2)' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]. ./usr/include/linux/bcache.h:355:2: warning: field '' with variable sized type 'union jset::(anonymous at ./usr/include/linux/bcache.h:355:2)' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]. Change-Id: Ib233bb85350dc2a47fa198982f466e763ff40241 Signed-off-by: Elliot Berman --- scripts/gcc-wrapper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/gcc-wrapper.py b/scripts/gcc-wrapper.py index 11ce68d96fe6..d7421e6e63cb 100755 --- a/scripts/gcc-wrapper.py +++ b/scripts/gcc-wrapper.py @@ -24,6 +24,8 @@ allowed_warnings = set([ "mprotect.c:42", "signal.c:95", "signal.c:51", + "bcache.h:354", + "bcache.h:355", ]) # Capture the name of the object file, can find it.