mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
tools/mkallsyms.sh: Disable the mismatch warning of builtin declaration
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
5da5ffb7d4
commit
848d1ef0b7
1 changed files with 4 additions and 0 deletions
|
|
@ -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 "{"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue