diff options
| author | kleink <kleink@NetBSD.org> | 1999-02-16 17:31:25 +0000 |
|---|---|---|
| committer | kleink <kleink@NetBSD.org> | 1999-02-16 17:31:25 +0000 |
| commit | bbc05bdcb9c8ddff456d547455e8ac1eadb8d515 (patch) | |
| tree | e6e45f6a70061d2acbef087aa49371a308fc622d /usr.bin | |
| parent | adf03cea8111b44194f5f4e37565c2dcf1fb47ac (diff) | |
Avoid a bogus GCC uninitialized warning; reported by Soren S. Jorvang.
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/nl/nl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/nl/nl.c b/usr.bin/nl/nl.c index 2c407e1132d..0ee8d4e450b 100644 --- a/usr.bin/nl/nl.c +++ b/usr.bin/nl/nl.c @@ -1,4 +1,4 @@ -/* $NetBSD: nl.c,v 1.1 1999/02/15 15:07:15 kleink Exp $ */ +/* $NetBSD: nl.c,v 1.2 1999/02/16 17:31:25 kleink Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ __COPYRIGHT( "@(#) Copyright (c) 1999\ The NetBSD Foundation, Inc. All rights reserved."); -__RCSID("$NetBSD: nl.c,v 1.1 1999/02/15 15:07:15 kleink Exp $"); +__RCSID("$NetBSD: nl.c,v 1.2 1999/02/16 17:31:25 kleink Exp $"); #endif #include <errno.h> @@ -307,6 +307,9 @@ filter() adjblank = 0; line = startnum; section = BODY; +#ifdef __GNUC__ + (void)&donumber; /* avoid bogus `uninitialized' warning */ +#endif while (fgets(buffer, (int)buffersize, stdin) != NULL) { for (idx = FOOTER; idx <= NP_LAST; idx++) { |
