From owner-svn-src-head@FreeBSD.ORG Tue Jan 20 17:15:12 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DAC9106566B; Tue, 20 Jan 2009 17:15:12 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 71DDD8FC17; Tue, 20 Jan 2009 17:15:12 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n0KHFCSq051201; Tue, 20 Jan 2009 17:15:12 GMT (envelope-from rdivacky@svn.freebsd.org) Received: (from rdivacky@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n0KHFCfw051198; Tue, 20 Jan 2009 17:15:12 GMT (envelope-from rdivacky@svn.freebsd.org) Message-Id: <200901201715.n0KHFCfw051198@svn.freebsd.org> From: Roman Divacky Date: Tue, 20 Jan 2009 17:15:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r187475 - head/usr.bin/make X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jan 2009 17:15:13 -0000 Author: rdivacky Date: Tue Jan 20 17:15:12 2009 New Revision: 187475 URL: http://svn.freebsd.org/changeset/base/187475 Log: Remove inlining of functions that are used mostly in different object files. This gets rid of gnu89 style inlining. Also silence gcc by assigning two variables NULL. This lets use to remove NO_WERROR. Approved by: kib (mentor) Approved by: harti Modified: head/usr.bin/make/Makefile head/usr.bin/make/buf.c head/usr.bin/make/suff.c Modified: head/usr.bin/make/Makefile ============================================================================== --- head/usr.bin/make/Makefile Tue Jan 20 16:35:34 2009 (r187474) +++ head/usr.bin/make/Makefile Tue Jan 20 17:15:12 2009 (r187475) @@ -8,7 +8,6 @@ SRCS= arch.c buf.c cond.c dir.c for.c ha lst.c main.c make.c parse.c proc.c shell.c str.c suff.c targ.c \ util.c var.c -NO_WERROR= WARNS?= 6 NO_SHARED?= YES Modified: head/usr.bin/make/buf.c ============================================================================== --- head/usr.bin/make/buf.c Tue Jan 20 16:35:34 2009 (r187474) +++ head/usr.bin/make/buf.c Tue Jan 20 17:15:12 2009 (r187475) @@ -58,7 +58,7 @@ __FBSDID("$FreeBSD$"); * Returns the number of bytes in the buffer. Doesn't include the * null-terminating byte. */ -inline size_t +size_t Buf_Size(const Buffer *buf) { @@ -70,7 +70,7 @@ Buf_Size(const Buffer *buf) * * @note Adding data to the Buffer object may invalidate the reference. */ -inline char * +char * Buf_Data(const Buffer *bp) { @@ -98,7 +98,7 @@ BufExpand(Buffer *bp, size_t nb) /** * Add a single byte to the buffer. */ -inline void +void Buf_AddByte(Buffer *bp, Byte byte) { Modified: head/usr.bin/make/suff.c ============================================================================== --- head/usr.bin/make/suff.c Tue Jan 20 16:35:34 2009 (r187474) +++ head/usr.bin/make/suff.c Tue Jan 20 17:15:12 2009 (r187475) @@ -514,6 +514,7 @@ Suff_AddTransform(char *line) Suff *s; /* source suffix */ Suff *t; /* target suffix */ + s = t = NULL; /* silence gcc */ gn = SuffTransFind(line); if (gn == NULL) { /*