From a6773a8412400adf703ad6f9dd3fa3e6d7402245 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 13 Feb 2022 17:32:43 +0800 Subject: [PATCH] tools/mksymtab.sh: Disable the mismatch warning of builtin declaration Signed-off-by: Xiang Xiao --- tools/mksymtab.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/mksymtab.sh b/tools/mksymtab.sh index 9275945eb..cfdd6ff95 100755 --- a/tools/mksymtab.sh +++ b/tools/mksymtab.sh @@ -57,6 +57,11 @@ echo "#include " echo "#include " echo "" +echo "#if defined(__GNUC__) && !defined(__clang__)" +echo "# pragma GCC diagnostic ignored \"-Wbuiltin-declaration-mismatch\"" +echo "#endif" +echo "" + for string in $varlist; do var=`echo $string | sed -e "s/\"//g"` echo "extern void *${var};"