This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new a6773a8 tools/mksymtab.sh: Disable the mismatch warning of builtin
declaration
a6773a8 is described below
commit a6773a8412400adf703ad6f9dd3fa3e6d7402245
Author: Xiang Xiao <[email protected]>
AuthorDate: Sun Feb 13 17:32:43 2022 +0800
tools/mksymtab.sh: Disable the mismatch warning of builtin declaration
Signed-off-by: Xiang Xiao <[email protected]>
---
tools/mksymtab.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tools/mksymtab.sh b/tools/mksymtab.sh
index 9275945..cfdd6ff 100755
--- a/tools/mksymtab.sh
+++ b/tools/mksymtab.sh
@@ -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};"