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
7e3d8842da
commit
353bb0a3f8
@ -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…
x
Reference in New Issue
Block a user