mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=165462
1 changed files with 1 additions and 4 deletions
|
|
@ -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…
Add table
Reference in a new issue