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-apps.git
commit 4aad345d1bc2c04ed8ed726eb215c935930d7e4b Author: cuiziwei <[email protected]> AuthorDate: Wed Apr 15 19:23:53 2026 +0800 libarchive: suppress -Wvarargs for clang build The iso9660 writer passes an enum parameter to va_start(), which undergoes default argument promotion. Clang treats this as an error with -Werror,-Wvarargs. Add -Wno-varargs to both CMakeLists.txt and Makefile to suppress it. Signed-off-by: cuiziwei <[email protected]> Signed-off-by: tengshuangshuang <[email protected]> --- system/libarchive/CMakeLists.txt | 4 ++-- system/libarchive/Makefile | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/system/libarchive/CMakeLists.txt b/system/libarchive/CMakeLists.txt index cc47626ac..33b7e4832 100644 --- a/system/libarchive/CMakeLists.txt +++ b/system/libarchive/CMakeLists.txt @@ -52,8 +52,8 @@ if(CONFIG_UTILS_LIBARCHIVE) # Flags # ############################################################################ - set(CFLAGS -Wno-undef -DHAVE_CONFIG_H=1 -D__LIBARCHIVE_CONFIG_H_INCLUDED=1 - -UMAX_SIGNO) + set(CFLAGS -Wno-undef -Wno-varargs -DHAVE_CONFIG_H=1 + -D__LIBARCHIVE_CONFIG_H_INCLUDED=1 -UMAX_SIGNO) # ############################################################################ # Sources diff --git a/system/libarchive/Makefile b/system/libarchive/Makefile index 86747fa77..8631e64f9 100644 --- a/system/libarchive/Makefile +++ b/system/libarchive/Makefile @@ -48,6 +48,7 @@ CFLAGS += -I$(LIBARCHIVE_SRC)/libarchive_fe CFLAGS += -DHAVE_CONFIG_H=1 CFLAGS += -D__LIBARCHIVE_CONFIG_H_INCLUDED=1 CFLAGS += -Wno-undef +CFLAGS += -Wno-varargs CFLAGS += -UMAX_SIGNO CSRCS += $(wildcard $(LIBARCHIVE_SRC)/libarchive/*.c)
