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 <eberman@codeaurora.org>
This commit is contained in:
Elliot Berman
2021-01-06 10:15:40 -08:00
parent 19fb631572
commit 193bd742b5

View File

@@ -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.