From owner-freebsd-audit Mon Jun 11 9:23:13 2001 Delivered-To: freebsd-audit@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id 75FEB37B407 for ; Mon, 11 Jun 2001 09:23:04 -0700 (PDT) (envelope-from roam@ringworld.nanolink.com) Received: (qmail 61597 invoked by uid 1000); 11 Jun 2001 16:21:43 -0000 Date: Mon, 11 Jun 2001 19:21:43 +0300 From: Peter Pentchev To: Peter Wemm Cc: audit@FreeBSD.org Subject: ncurses const patch Message-ID: <20010611192143.D59082@ringworld.oblivion.bg> Mail-Followup-To: Peter Wemm , audit@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 or 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