From owner-cvs-all@FreeBSD.ORG Sat Jun 16 14:39:26 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 69BD516A400; Sat, 16 Jun 2007 14:39:26 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 5B0F313C4C2; Sat, 16 Jun 2007 14:39:26 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l5GEdQ2p039222; Sat, 16 Jun 2007 14:39:26 GMT (envelope-from se@repoman.freebsd.org) Received: (from se@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l5GEdQUx039218; Sat, 16 Jun 2007 14:39:26 GMT (envelope-from se) Message-Id: <200706161439.l5GEdQUx039218@repoman.freebsd.org> From: Stefan Esser Date: Sat, 16 Jun 2007 14:39:26 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.bin/rpcgen rpc_svcout.c 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: Sat, 16 Jun 2007 14:39:26 -0000 se 2007-06-16 14:39:26 UTC FreeBSD src repository Modified files: usr.bin/rpcgen rpc_svcout.c Log: Never define the generated rpc server main function with storage type "static". The header file generated by "rpcgen -h" will always declare it as extern, leading to a "static after extern" error being issued by gcc-4.2. This caused only a warning in gcc-3.x, but it has been wrong all the time. This change does not modify the code generated by "rpcgen -m", it only affects rpcgen used to generate server stubs with a local main function. This is the minimal patch. It does not remove the now obsolete "storage" parameter from write_program() and write_programs() in an attempt to keep differences to other systems' versions of rpcgen as small as possible. Revision Changes Path 1.24 +1 -1 src/usr.bin/rpcgen/rpc_svcout.c