From owner-cvs-src@FreeBSD.ORG Fri Jul 25 11:40:37 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4034B37B401; Fri, 25 Jul 2003 11:40:37 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFDBF43F75; Fri, 25 Jul 2003 11:40:36 -0700 (PDT) (envelope-from gad@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h6PIea0U049888; Fri, 25 Jul 2003 11:40:36 -0700 (PDT) (envelope-from gad@repoman.freebsd.org) Received: (from gad@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h6PIea2N049887; Fri, 25 Jul 2003 11:40:36 -0700 (PDT) Message-Id: <200307251840.h6PIea2N049887@repoman.freebsd.org> From: Garance A Drosehn Date: Fri, 25 Jul 2003 11:40:36 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/sys cdefs.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jul 2003 18:40:37 -0000 gad 2003/07/25 11:40:36 PDT FreeBSD src repository Modified files: sys/sys cdefs.h Log: Discussions on src-committers with alfred and bde pointed out that the "do-nothing" versions of __RCSID(), __RCSID_SOURCE(), __SCCSID(), and __COPYRIGHT() were not strictly correct. They should not expand into [nothing], because the ';' which follows them would then cause a syntax error (in a strict C compiler, if not gcc...). So, change the do-nothing versions of those macros to use the 'struct __hack' tactic, as was already used with __FBSDID(). Approved by: discussions with bde MFC after: 1 week Revision Changes Path 1.75 +8 -6 src/sys/sys/cdefs.h