Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Sep 2010 22:00:31 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r212508 - head/bin/sh
Message-ID:  <201009122200.o8CM0VCV026038@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Sun Sep 12 22:00:31 2010
New Revision: 212508
URL: http://svn.freebsd.org/changeset/base/212508

Log:
  sh: Add __dead2 to two functions that do not return.
  
  Apart from helping static analyzers, this also appears to reduce the size of
  the binary slightly.

Modified:
  head/bin/sh/parser.c

Modified: head/bin/sh/parser.c
==============================================================================
--- head/bin/sh/parser.c	Sun Sep 12 20:46:32 2010	(r212507)
+++ head/bin/sh/parser.c	Sun Sep 12 22:00:31 2010	(r212508)
@@ -118,8 +118,8 @@ STATIC int readtoken(void);
 STATIC int xxreadtoken(void);
 STATIC int readtoken1(int, char const *, char *, int);
 STATIC int noexpand(char *);
-STATIC void synexpect(int);
-STATIC void synerror(const char *);
+STATIC void synexpect(int) __dead2;
+STATIC void synerror(const char *) __dead2;
 STATIC void setprompt(int);
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009122200.o8CM0VCV026038>