From 235c8f6631cb58a50e5b36e786d6354ae4e43cea Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 27 Jun 2023 10:19:32 -0700 Subject: [PATCH] ncurses: Silence -Wunused-but-set-variable for various files. Presumably these will be fixed upstream eventually. Differential Revision: https://reviews.freebsd.org/D40664 --- lib/ncurses/form/Makefile | 2 ++ lib/ncurses/ncurses/Makefile | 2 ++ lib/ncurses/tinfo/Makefile | 3 +++ 3 files changed, 7 insertions(+) diff --git a/lib/ncurses/form/Makefile b/lib/ncurses/form/Makefile index 8a26672544c..341205aca2d 100644 --- a/lib/ncurses/form/Makefile +++ b/lib/ncurses/form/Makefile @@ -57,6 +57,8 @@ CLEANFILES= ncurses_def.h CFLAGS+= -I${SRCDIR} CFLAGS+= -I${NCURSES_DIR}/menu +CWARNFLAGS.fty_enum.c= ${NO_WUNUSED_BUT_SET_VARIABLE} + LIBADD+= ncursesw INCS= form.h diff --git a/lib/ncurses/ncurses/Makefile b/lib/ncurses/ncurses/Makefile index 45c8fcd1130..1c1b995a9ff 100644 --- a/lib/ncurses/ncurses/Makefile +++ b/lib/ncurses/ncurses/Makefile @@ -147,6 +147,8 @@ DBGSRCS= \ CLEANFILES= ${GENSRCS} +CWARNFLAGS.lib_set_term.c= ${NO_WUNUSED_BUT_SET_VARIABLE} + .if ${MK_INSTALLLIB} != "no" SYMLINKS+= libncursesw.a ${LIBDIR}/libcursesw.a # backward compat diff --git a/lib/ncurses/tinfo/Makefile b/lib/ncurses/tinfo/Makefile index 2d251072acb..40cd36bc17a 100644 --- a/lib/ncurses/tinfo/Makefile +++ b/lib/ncurses/tinfo/Makefile @@ -167,6 +167,9 @@ CLEANFILES= ${GENSRCS} ${GENHDRS} keys.list make_hash term.h.new \ CFLAGS+= -DTERMIOS +CWARNFLAGS.comp_parse.c= ${NO_WUNUSED_BUT_SET_VARIABLE} +CWARNFLAGS.read_entry.c= ${NO_WUNUSED_BUT_SET_VARIABLE} + # Installed HEADERS= curses.h term.h termcap.h unctrl.h SRCHDRS= ncurses_dll.h