[XS] Change in simtrace2[master]: firmware/Makefile: remove -Wredundant-decls
laforge has submitted this change. ( https://gerrit.osmocom.org/c/simtrace2/+/42769?usp=email ) Change subject: firmware/Makefile: remove -Wredundant-decls ...................................................................... firmware/Makefile: remove -Wredundant-decls picolibc has redundant declarations of free and strdtold, which results in lots of warnings with -Wredundant-decls. Adjust CFLAGS to remove -Wredundant-decls to make the compiler log more readable. /usr/lib/picolibc/arm-none-eabi/include/stdlib.h:147:9: warning: redundant redeclaration of 'free' [-Wredundant-decls] 147 | void free (void *) __nothrow; | ^~~~ /usr/lib/picolibc/arm-none-eabi/include/stdlib.h:99:9: note: previous declaration of 'free' with type 'void(void *)' 99 | void free (void *) __nothrow; | ^~~~ /usr/lib/picolibc/arm-none-eabi/include/stdlib.h:307:9: warning: redundant redeclaration of 'strtold' [-Wredundant-decls] 307 | strtold (const char *__restrict, char **__restrict); | ^~~~~~~ /usr/lib/picolibc/arm-none-eabi/include/stdlib.h:286:9: note: previous declaration of 'strtold' with type 'long double(const char * restrict, char ** restrict)' 286 | strtold (const char *__restrict __n, char **__restrict __end_PTR); | ^~~~~~~ Change-Id: I32ff78f2a27191d1c6e114429d2e0713674732fe --- M firmware/Makefile 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: laforge: Looks good to me, approved fixeria: Looks good to me, but someone else must approve Jenkins Builder: Verified diff --git a/firmware/Makefile b/firmware/Makefile index 13f6bd2..7692885 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -186,7 +186,7 @@ CFLAGS += -Waggregate-return #-Wsign-compare CFLAGS += -Wmissing-format-attribute -Wno-deprecated-declarations CFLAGS += #-Wpacked -CFLAGS += -Wredundant-decls -Wnested-externs #-Winline -Wlong-long +CFLAGS += -Wnested-externs #-Winline -Wlong-long -Wredundant-decls CFLAGS += -Wunreachable-code #CFLAGS += -Wcast-align #CFLAGS += -std=c11 -- To view, visit https://gerrit.osmocom.org/c/simtrace2/+/42769?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: simtrace2 Gerrit-Branch: master Gerrit-Change-Id: I32ff78f2a27191d1c6e114429d2e0713674732fe Gerrit-Change-Number: 42769 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> Gerrit-Reviewer: laforge <laforge@osmocom.org>
participants (1)
-
laforge