From owner-svn-src-head@freebsd.org Thu May 12 03:49:06 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6C9AAB2DBED; Thu, 12 May 2016 03:49:06 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3F0E21A68; Thu, 12 May 2016 03:49:06 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4C3n50L038600; Thu, 12 May 2016 03:49:05 GMT (envelope-from cem@FreeBSD.org) Received: (from cem@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4C3n5xe038590; Thu, 12 May 2016 03:49:05 GMT (envelope-from cem@FreeBSD.org) Message-Id: <201605120349.u4C3n5xe038590@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cem set sender to cem@FreeBSD.org using -f From: "Conrad E. Meyer" Date: Thu, 12 May 2016 03:49:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299509 - head/usr.bin/rpcgen X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 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: Thu, 12 May 2016 03:49:06 -0000 Author: cem Date: Thu May 12 03:49:05 2016 New Revision: 299509 URL: https://svnweb.freebsd.org/changeset/base/299509 Log: rpcgen(1): Tag crash() routine as __dead2 for static analyzers Suggested by: Coverity CID: 1305464 Sponsored by: EMC / Isilon Storage Division Modified: head/usr.bin/rpcgen/rpc_util.c head/usr.bin/rpcgen/rpc_util.h Modified: head/usr.bin/rpcgen/rpc_util.c ============================================================================== --- head/usr.bin/rpcgen/rpc_util.c Thu May 12 03:44:29 2016 (r299508) +++ head/usr.bin/rpcgen/rpc_util.c Thu May 12 03:49:05 2016 (r299509) @@ -261,7 +261,7 @@ error(const char *msg) * Something went wrong, unlink any files that we may have created and then * die. */ -void +void __dead2 crash(void) { int i; Modified: head/usr.bin/rpcgen/rpc_util.h ============================================================================== --- head/usr.bin/rpcgen/rpc_util.h Thu May 12 03:44:29 2016 (r299508) +++ head/usr.bin/rpcgen/rpc_util.h Thu May 12 03:49:05 2016 (r299509) @@ -152,7 +152,7 @@ extern pid_t childpid; * rpc_util routines */ void reinitialize(void); -void crash(void); +void crash(void) __dead2; void add_type(int len, const char *type); void storeval(list **lstp, definition *val); void *xmalloc(size_t size);