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);
 
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to