mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08:00
tools/mkallsyms.sh: Disable the mismatch warning of builtin declaration
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
5da5ffb7d4
commit
848d1ef0b7
@@ -44,6 +44,10 @@ fi
|
|||||||
echo "#include <nuttx/compiler.h>"
|
echo "#include <nuttx/compiler.h>"
|
||||||
echo "#include <nuttx/symtab.h>"
|
echo "#include <nuttx/symtab.h>"
|
||||||
echo ""
|
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 int g_nallsyms = ${count} + 2;"
|
||||||
echo "const struct symtab_s g_allsyms[${count} + 2] = "
|
echo "const struct symtab_s g_allsyms[${count} + 2] = "
|
||||||
echo "{"
|
echo "{"
|
||||||
|
|||||||
Reference in New Issue
Block a user