diff options
author | jilles <jilles@FreeBSD.org> | 2010-09-12 22:00:31 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-09-12 22:00:31 +0000 |
commit | dc327c8b4d820f3f5b301f094f606a135ef2430d (patch) | |
tree | 226c5cd485b22e07affdcf2226ea66cd504eaabf /bin | |
parent | 624f75c1e1d8faccb1c381374ea61fcdc76753d2 (diff) | |
download | FreeBSD-src-dc327c8b4d820f3f5b301f094f606a135ef2430d.zip FreeBSD-src-dc327c8b4d820f3f5b301f094f606a135ef2430d.tar.gz |
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.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sh/parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c index 69d3e6f..02012ef 100644 --- a/bin/sh/parser.c +++ b/bin/sh/parser.c @@ -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); |