mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
tools/mksymtab.sh: Disable the mismatch warning of builtin declaration
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
81f15936c1
commit
a6773a8412
1 changed files with 5 additions and 0 deletions
|
|
@ -57,6 +57,11 @@ 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 ""
|
||||
|
||||
for string in $varlist; do
|
||||
var=`echo $string | sed -e "s/\"//g"`
|
||||
echo "extern void *${var};"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue