tools/mkallsyms.sh: Disable the mismatch warning of builtin declaration

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-02-13 17:44:22 +08:00 committed by Petro Karashchenko
parent 5da5ffb7d4
commit 848d1ef0b7

View File

@ -44,6 +44,10 @@ fi
echo "#include <nuttx/compiler.h>"
echo "#include <nuttx/symtab.h>"
echo ""
echo "#if defined(__GNUC__) && !defined(__clang__)"
echo "# pragma GCC diagnostic ignored \"-Wbuiltin-declaration-mismatch\""
echo "#endif"
echo ""
echo "const int g_nallsyms = ${count} + 2;"
echo "const struct symtab_s g_allsyms[${count} + 2] = "
echo "{"