git: 235c8f6631cb - main - ncurses: Silence -Wunused-but-set-variable for various files.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 Jun 2023 17:19:44 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=235c8f6631cb58a50e5b36e786d6354ae4e43cea
commit 235c8f6631cb58a50e5b36e786d6354ae4e43cea
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-06-27 17:19:32 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-06-27 17:19:32 +0000
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 8a26672544c5..341205aca2d9 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 45c8fcd11301..1c1b995a9ff6 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 2d251072acb8..40cd36bc17a4 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