Date: Mon, 11 Jun 2001 19:21:43 +0300 From: Peter Pentchev <roam@orbitel.bg> To: Peter Wemm <peter@wemm.org> Cc: audit@FreeBSD.org Subject: ncurses const patch Message-ID: <20010611192143.D59082@ringworld.oblivion.bg>
index | next in thread | raw e-mail
Hi,
Is there a particular reason that src/lib/libncurses/Makefile does
not tell ncurses that FreeBSD's compiler honors 'const'?
The attached patch allows all programs including <curses.h> or
<ncurses.h> and using *printw() to compile with WARNS=2.
A similar patch applies to RELENG_4.
There might be some header dependency bogosities that would require
that the /usr/obj tree be cleaned before the libncurses recompile,
but such is life..
G'luck,
Peter
--
I had to translate this sentence into English because I could not read the original Sanskrit.
Index: src/lib/libncurses/Makefile
===================================================================
RCS file: /home/ncvs/src/lib/libncurses/Makefile,v
retrieving revision 1.50
diff -u -r1.50 Makefile
--- src/lib/libncurses/Makefile 2001/06/07 17:27:44 1.50
+++ src/lib/libncurses/Makefile 2001/06/11 10:25:46
@@ -15,7 +15,7 @@
NCURSES_PATCH!=egrep 'NCURSES_PATCH[ ]*=' ${NCURSES}/dist.mk | sed -e 's%^[^0-9]*%%'
# From autoconf (!)
-NCURSES_CONST= /* nothing */
+NCURSES_CONST= const
NCURSES_XNAMES= 1
NCURSES_OSPEED= short
BUILTIN_BOOL= 1
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010611192143.D59082>
