This is an automated email from the ASF dual-hosted git repository. GUIDINGLI pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit d606a3bd3aed73e58d3345d26630389be15b58af Author: haopengxiang <[email protected]> AuthorDate: Tue Mar 17 16:11:15 2026 +0800 audioutils/libmad: pass -Wno-stringop-overflow only to GCC clang does not know -Wno-stringop-overflow and reports it as an unknown warning option, which breaks the build when warnings are errors. Add the flag only for GCC. Signed-off-by: haopengxiang <[email protected]> --- audioutils/libmad/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/audioutils/libmad/CMakeLists.txt b/audioutils/libmad/CMakeLists.txt index 354f42818..61db0a281 100644 --- a/audioutils/libmad/CMakeLists.txt +++ b/audioutils/libmad/CMakeLists.txt @@ -49,7 +49,10 @@ if(CONFIG_AUDIOUTILS_LIBMAD) file(GLOB LIBMAD_SRCS libmad/*.c) set(CSRCS ${LIBMAD_SRCS}) - set(CFLAGS -Wno-shadow -Wno-stringop-overflow -DFPM_DEFAULT -DSIZEOF_INT=4) + set(CFLAGS -Wno-shadow -DFPM_DEFAULT -DSIZEOF_INT=4) + if(CMAKE_C_COMPILER_ID STREQUAL "GNU") + list(APPEND CFLAGS -Wno-stringop-overflow) + endif() set(INCDIR ${CMAKE_CURRENT_LIST_DIR}/libmad ${CMAKE_CURRENT_LIST_DIR}/libmad/msvc++)
