From owner-cvs-all@FreeBSD.ORG Sun Aug 13 07:08:33 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.ORG Delivered-To: cvs-all@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 15B1D16A4DD for ; Sun, 13 Aug 2006 07:08:33 +0000 (UTC) (envelope-from cperciva@freebsd.org) Received: from pd5mo3so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAFF743D4C for ; Sun, 13 Aug 2006 07:08:32 +0000 (GMT) (envelope-from cperciva@freebsd.org) Received: from pd2mr1so.prod.shaw.ca (pd2mr1so-qfe3.prod.shaw.ca [10.0.141.110]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0J3X006CED0H0880@l-daemon> for cvs-all@FreeBSD.ORG; Sun, 13 Aug 2006 01:05:05 -0600 (MDT) Received: from pn2ml9so.prod.shaw.ca ([10.0.121.7]) by pd2mr1so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0J3X0030ND0HNAM0@pd2mr1so.prod.shaw.ca> for cvs-all@FreeBSD.ORG; Sun, 13 Aug 2006 01:05:05 -0600 (MDT) Received: from hexahedron.daemonology.net ([24.82.18.31]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with SMTP id <0J3X00J0QD0GAI90@l-daemon> for cvs-all@FreeBSD.ORG; Sun, 13 Aug 2006 01:05:05 -0600 (MDT) Received: (qmail 13160 invoked from network); Sun, 13 Aug 2006 07:05:01 +0000 Received: from unknown (HELO ?127.0.0.1?) (127.0.0.1) by localhost with SMTP; Sun, 13 Aug 2006 07:05:01 +0000 Date: Sun, 13 Aug 2006 00:05:00 -0700 From: Colin Percival In-reply-to: <20060813055947.GA9508@nagual.pp.ru> To: Andrey Chernov , Colin Percival , src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG Message-id: <44DECF1C.3080606@freebsd.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Enigmail-Version: 0.94.0.0 References: <200608130532.k7D5WA6g040164@repoman.freebsd.org> <20060813055947.GA9508@nagual.pp.ru> User-Agent: Thunderbird 1.5 (X11/20060416) Cc: Subject: Re: cvs commit: src/usr.sbin/named Makefile X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Aug 2006 07:08:33 -0000 Andrey Chernov wrote: > On Sun, Aug 13, 2006 at 05:32:10AM +0000, Colin Percival wrote: >> cperciva 2006-08-13 05:32:10 UTC >> >> FreeBSD src repository >> >> Modified files: >> usr.sbin/named Makefile >> Log: >> Undefine __DATE__ in order to avoid placing a build timestamp into >> /usr/sbin/{named, lwresd}. Note that POSIX / C99 doesn't technically >> allow __DATE__ to be (un|re)defined, but gcc does what we mean anyway. > > There is a warning. Probably it can interfere with future warn level > increasing. What about _re_defining date, say, to the date of named > import? Redefining __DATE__ produces a similar warning: :12:1: warning: "__DATE__" redefined AFAIK the only way to do this while avoiding warning entirely would be to edit the source code directly to remove reference to __DATE__, but this would involve either taking named.c off the vendor branch or convincing the authors of BIND to adopt the change. Colin Percival