Avoid 'bogus' uninitialized warning by initializing rather than
playing cute games. It is much simpler, clearer and easier to follow and understand. Besides, gcc4 likes it better.
This commit is contained in:
parent
6e71b264de
commit
c8daf471f4
@ -296,14 +296,11 @@ filter()
|
||||
int section; /* logical page section */
|
||||
unsigned int adjblank; /* adjacent blank lines */
|
||||
int consumed; /* intbuffer measurement */
|
||||
int donumber, idx;
|
||||
int donumber = 0, idx;
|
||||
|
||||
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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user