diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-04-16 22:06:34 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-04-16 22:06:34 +0000 |
commit | aedaabc8c84840cc7b6222e56de7130c0632d4d7 (patch) | |
tree | bedc2ee769a1fecde2474ba814545c32c82a47a7 /wiretap | |
parent | 122ed97b4afda31677fa80430b6c4785d34fb0de (diff) | |
download | wireshark-aedaabc8c84840cc7b6222e56de7130c0632d4d7.tar.gz wireshark-aedaabc8c84840cc7b6222e56de7130c0632d4d7.tar.bz2 wireshark-aedaabc8c84840cc7b6222e56de7130c0632d4d7.zip |
GCC 2.95.1 on SPARC/Solaris, at least, is clever enough to figure out
that the loop in "lanalyzer_open()" is an infinite loop, so the "return
0;" at the end isn't necessary to suppress a compiler warning with that
compiler - and Sun C not only figures it out, it warns that the
"g_assert_not_reached()" and the "return 0;" are unreachable, so I'll
take them out for now (and put them back if my older GCC at home still
requires it to suppress warnings).
svn path=/trunk/; revision=3310
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/lanalyzer.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/wiretap/lanalyzer.c b/wiretap/lanalyzer.c index 9ff11760b0..44013670d4 100644 --- a/wiretap/lanalyzer.c +++ b/wiretap/lanalyzer.c @@ -1,6 +1,6 @@ /* lanalyzer.c * - * $Id: lanalyzer.c,v 1.27 2001/03/10 06:33:57 guy Exp $ + * $Id: lanalyzer.c,v 1.28 2001/04/16 22:06:34 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org> @@ -188,10 +188,6 @@ int lanalyzer_open(wtap *wth, int *err) ; /* no action */ } } - - /* never gets here */ - g_assert_not_reached(); - return 0; } #define DESCRIPTOR_LEN 32 |