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

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

commit 33a5d636129f850cebbb1d686841a67d7bc971a8
Author: v-zhangxiaomeng5 <[email protected]>
AuthorDate: Sat Oct 10 14:53:26 2026 +0800

    arch/tricore: rebuild the TASKING warning suppression lists
    
    Built once with nothing suppressed, which gave 31385 warnings over 37
    numbers, and went through them.
    
    W504 was real and is fixed in its own commit: a driver defined
    __builtin_ctz against the one compiler.h now provides. W558 and W0001
    are real but harmless here, so they are left visible rather than hidden:
    four headers name a struct only in a prototype, and one file does not
    end in a newline.
    
    The rest stay. They are a deliberate idiom (x & -x, a table built from
    an overflow, max * max for an infinity), a limit of the analysis
    (conditions that are correlated but not tracked together), something the
    compiler cannot express (an attribute or pragma cptc does not know), or
    third party code.
    
    15 entries no longer fire and only mislead whoever reads them next, and
    4 that do fire were missing, so a cmake build was showing C++ 177, 550,
    1300 and 1698 with nobody acting on them.
    
    The Makefile list had drifted to 17 numbers against 34 and suppressed
    nothing for C++, so a build started with make drowned in warnings a
    cmake build never showed. Both now carry the same set.
    
    Signed-off-by: v-zhangxiaomeng5 <[email protected]>
---
 arch/tricore/src/cmake/tasking.cmake          | 25 ++++++-------------------
 arch/tricore/src/common/ToolchainTasking.defs | 25 ++++++++++++++++++++++---
 2 files changed, 28 insertions(+), 22 deletions(-)

diff --git a/arch/tricore/src/cmake/tasking.cmake 
b/arch/tricore/src/cmake/tasking.cmake
index d28b11b8e08..f93a4a786f6 100644
--- a/arch/tricore/src/cmake/tasking.cmake
+++ b/arch/tricore/src/cmake/tasking.cmake
@@ -229,58 +229,45 @@ add_link_options(-lrt)
 
 # cmake-format: off
 # ctc W500: ["stdio/lib_libvsprintf.c" 884/29] expression without effect
-# ctc W501: ["bw_udp.c" 120/1] goto label not referenced (lmbench)
 # ctc W507: ["mm_heap/mm_malloc.c" 238/64] variable "nodesize" is possibly 
uninitialized
 # ctc W508: ["misc/lib_impure.c" 1/1] empty source file
-# ctc W516: ["memsize.c" 56/6] assignment as controlling expression (lmbench)
 # ctc W525: ["getopt.c" 678/3] discarded 'const' qualifier at assignment: 
conversion from char const * to char *
 # ctc W527: ["stdlib/lib_strtold.c" 565/23] constant of type "double" saturated
 # ctc W526: ["include/sys/epoll.h" 87/5] enumeration constant shall be 
representable as 'int'
 # ctc W529: ["wchar/lib_mbrtowc.c" 88/35] overflow in constant expression of 
type "unsigned long int"
-# ctc W535: ["lib_timing.c" 1682/2] no type specifiers - assumed 'int' 
(lmbench)
 # ctc W536: ["libuv/src/unix/internal.h" 382/1] unused static function 
(libuv/lmbench)
 # ctc W537: ["mbedtls/library/alignment.h" 389/23] unused variable 
(mbedtls/lmbench)
 # ctc W544: ["wqueue/kwork_thread.c" 210/32] unreachable code
 # ctc W549: ["unistd/lib_getopt_common.c" 544/15] condition is always true
 # ctc W553: ["vfs/fs_fcntl.c" 231/7] no 'break' or comment before case label
-# ctc W555: ["avb_sysdeps_posix.c" 67/1] noreturn function may return (avb)
 # ctc W557: ["common/tricore_main.c" 58/11] possible infinite loop
 # ctc W560: ["tmpfs/fs_tmpfs.c" 232/25] possible truncation at implicit 
conversion to type "unsigned short int"
 # ctc W562: ["mm_heap/mm_memalign.c" 70/20] unary minus applied to unsigned 
value
-# ctc W558: ["include/nuttx/power/regulator.h" 224/36] struct/union/enum 
definition in parameter declaration
-# ctc W564: ["lat_dram_page.c" 198/3] "/*" inside comment (lmbench)
 # ctc W587: ["stdlib/lib_strtold.c" 571/23] underflow on constant of type 
"double"
 # ctc W588: ["misc/lib_glob.c" 150/13] dead assignment to "i" eliminated
 # ctc W523: ["include/crypto/asn1.h" 120/30] conversion from pointer to 
smaller integer type (crypto/lmbench)
 # ctc W545: ["libuv/src/unix/stream.c" 1120/1] missing return value 
(libuv/lmbench/mbedtls)
 # ctc W547: ["micar" ...] rvalue has no effect (micar/avb/mbedtls/adb)
-# ctc W577: ["lat_mem_rd.c" 233/12] signed/unsigned conversion with cast 
(lmbench/letter-shell/crypto)
 # ctc W589: ["inode/fs_inodesearch.c" 72/8] pointer assumed to be nonzero - 
test removed
-# ctc W770: ["autocore" ...] conversion from wider to narrower type (autocore)
 # ctc W515: ["nx_start.c" 632/42] side effects of sizeof operand ignored 
(per-cpu macro false positive)
 # ctc W534: ["tricore_cxx_initialize.c" 38/53] array assumed to have one 
element (linker symbol)
 # ctc W548: ["mm_initialize.c" 198/3] uninitialized variable replaced by zero 
(function param false positive)
 # ctc W575: ["group_setupidlefiles.c" 116/2] #warning directive
-# ctc W597: ["rpmsgdev.c" 230/29] alignment of automatic object limited to 4 
(alloca/rpmsg_pool)
-# cptc W0068: ["include/libcxx/string" 878] integer conversion resulted in a 
change of sign
 # cptc W0161: ["SmartCode/ctc/include/math.h" 390] unrecognized #pragma
+# cptc W0177: ["libcxxabi/src/cxa_demangle.cpp" 282] declared but never 
referenced
+# cptc W0550: ["libcxx/src/verbose_abort.cpp" 40] variable set but never used
 # cptc W0940: ["libcxx/src/include/to_chars_floating_point.h" 1073] missing 
return statement at end of non-void function "
 # cptc W1097: ["include/libcxx/vector" 1347] unknown attribute "__visibility__"
-# cptc W1105: 
["libcxx/src/support/runtime/exception_pointer_unimplemented.ipp" 28] #warning 
directive: exception_ptr not yet implemented
+# cptc W1300: ["libcxxabi/src/cxa_demangle.cpp" 231] a class type that is not 
trivially copyable passed through ellipsis
 # cptc W1315: ["include/libcxx/new" 183] function declared with "noreturn" 
does return (throw triggered)
-# cptc W1858: ["libcxx/__bit/bit_cast.h" 34] attribute "__always_inline__" 
does not apply here
-# cptc W2213: ["include/libcxx/string" 4110] GNU attributes on a template 
redeclaration have no effect (the attributes of the original declaration at 
line 656 apply instead)
-# cptc W2496: ["include/libcxx/vector" 1429] the "always_inline" attribute is 
ignored on non-inline functions
-# cptc W2529: ["libcxx/__chrono/duration.h" 559] a user-provided literal 
suffix must begin with "_"
+# cptc W1698: ["libcxx/src/chrono.cpp" 150] unrecognized GCC pragma
 # cptc W2964: ["libcxx/src/include/to_chars_floating_point.h" 994] constexpr 
if statements are a C++17 feature
-# cptc W3085: ["include/libcxx/__charconv/tables.h" 26] inline variables are a 
C++17 feature
 # cmake-format: on
 
 set(TASKING_WARNINGS
-    
500,501,507,508,515,516,523,525,526,527,529,534,535,536,537,544,545,547,548,549,553,555,557,558,560,562,564,575,577,587,588,589,597,770
+    
500,507,508,515,523,525,526,527,529,534,536,537,544,545,547,548,549,553,557,560,562,575,587,588,589
 )
-set(TASKING_CXX_WARNINGS
-    68,161,940,1097,1105,1315,1858,2213,2496,2529,2964,3085)
+set(TASKING_CXX_WARNINGS 161,177,550,940,1097,1300,1315,1698,2964)
 
 add_compile_options(--pass-c=--no-warnings=${TASKING_WARNINGS})
 add_compile_options(
diff --git a/arch/tricore/src/common/ToolchainTasking.defs 
b/arch/tricore/src/common/ToolchainTasking.defs
index 57b0c830657..e4203fb4f1b 100644
--- a/arch/tricore/src/common/ToolchainTasking.defs
+++ b/arch/tricore/src/common/ToolchainTasking.defs
@@ -146,20 +146,39 @@ endif
 # ctc W527: ["stdlib/lib_strtold.c" 565/23] constant of type "double" saturated
 # ctc W526: ["include/sys/epoll.h" 87/5] enumeration constant shall be 
representable as 'int'
 # ctc W529: ["wchar/lib_mbrtowc.c" 88/35] overflow in constant expression of 
type "unsigned long int"
+# ctc W536: ["libuv/src/unix/internal.h" 382/1] unused static function 
(libuv/lmbench)
+# ctc W537: ["mbedtls/library/alignment.h" 389/23] unused variable 
(mbedtls/lmbench)
 # ctc W544: ["wqueue/kwork_thread.c" 210/32] unreachable code
 # ctc W549: ["unistd/lib_getopt_common.c" 544/15] condition is always true
 # ctc W553: ["vfs/fs_fcntl.c" 231/7] no 'break' or comment before case label
 # ctc W557: ["common/tricore_main.c" 58/11] possible infinite loop
 # ctc W560: ["tmpfs/fs_tmpfs.c" 232/25] possible truncation at implicit 
conversion to type "unsigned short int"
 # ctc W562: ["mm_heap/mm_memalign.c" 70/20] unary minus applied to unsigned 
value
-# ctc W558: ["include/nuttx/power/regulator.h" 224/36] struct/union/enum 
definition in parameter declaration
 # ctc W587: ["stdlib/lib_strtold.c" 571/23] underflow on constant of type 
"double"
 # ctc W588: ["misc/lib_glob.c" 150/13] dead assignment to "i" eliminated
+# ctc W523: ["include/crypto/asn1.h" 120/30] conversion from pointer to 
smaller integer type (crypto/lmbench)
+# ctc W545: ["libuv/src/unix/stream.c" 1120/1] missing return value 
(libuv/lmbench/mbedtls)
+# ctc W547: ["micar" ...] rvalue has no effect (micar/avb/mbedtls/adb)
 # ctc W589: ["inode/fs_inodesearch.c" 72/8] pointer assumed to be nonzero - 
test removed
-
-TASKING_WARNINGS  = 
500,507,508,525,526,527,529,544,549,553,560,562,557,558,587,588,589
+# ctc W515: ["nx_start.c" 632/42] side effects of sizeof operand ignored 
(per-cpu macro false positive)
+# ctc W534: ["tricore_cxx_initialize.c" 38/53] array assumed to have one 
element (linker symbol)
+# ctc W548: ["mm_initialize.c" 198/3] uninitialized variable replaced by zero 
(function param false positive)
+# ctc W575: ["group_setupidlefiles.c" 116/2] #warning directive
+# cptc W0161: ["SmartCode/ctc/include/math.h" 390] unrecognized #pragma
+# cptc W0177: ["libcxxabi/src/cxa_demangle.cpp" 282] declared but never 
referenced
+# cptc W0550: ["libcxx/src/verbose_abort.cpp" 40] variable set but never used
+# cptc W0940: ["libcxx/src/include/to_chars_floating_point.h" 1073] missing 
return statement at end of non-void function "
+# cptc W1097: ["include/libcxx/vector" 1347] unknown attribute "__visibility__"
+# cptc W1300: ["libcxxabi/src/cxa_demangle.cpp" 231] a class type that is not 
trivially copyable passed through ellipsis
+# cptc W1315: ["include/libcxx/new" 183] function declared with "noreturn" 
does return (throw triggered)
+# cptc W1698: ["libcxx/src/chrono.cpp" 150] unrecognized GCC pragma
+# cptc W2964: ["libcxx/src/include/to_chars_floating_point.h" 994] constexpr 
if statements are a C++17 feature
+
+TASKING_WARNINGS     = 
500,507,508,515,523,525,526,527,529,534,536,537,544,545,547,548,549,553,557,560,562,575,587,588,589
+TASKING_CXX_WARNINGS = 161,177,550,940,1097,1300,1315,1698,2964
 
 ARCHOPTIMIZATION += --pass-c=--no-warnings=$(TASKING_WARNINGS)
+CXXFLAGS         += --pass-c++=--no-warnings=$(TASKING_CXX_WARNINGS)
 
 # Loadable module definitions
 

Reply via email to