You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/05/12 14:19:56 UTC

[incubator-nuttx] branch master updated: Revert "tools/mkallsyms.sh: Disable the mismatch warning of builtin declaration"

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 072c28fe8e Revert "tools/mkallsyms.sh: Disable the mismatch warning of builtin declaration"
072c28fe8e is described below

commit 072c28fe8ec7bc2db66f4cdb7bf8bae680777b83
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Thu May 12 14:14:54 2022 +0900

    Revert "tools/mkallsyms.sh: Disable the mismatch warning of builtin declaration"
    
    This reverts commit 848d1ef0b736ec4e83cbd4aa1fa1aa00da3ffe8f.
    
    It doesn't make sense because the generated file just have names of
    symbols as strings. Nothing to worry about builtins.
---
 tools/mkallsyms.sh | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/tools/mkallsyms.sh b/tools/mkallsyms.sh
index 37c1cbac8d..3e673decf6 100755
--- a/tools/mkallsyms.sh
+++ b/tools/mkallsyms.sh
@@ -50,10 +50,6 @@ 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 "{"