Re: Question about unused 'netmask' var in bootp_support.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On 2012-03-08, Lange, Bert <b.lange@xxxxxxx> wrote:
> Hello Edward,
>
>> Can I just remove the declaration of netmask at line 452, and remove
>> line 484 entirely?  Or is this an actual bug because netmask is
>> supposed to be used for something?

> I would remove it.

That's what I've decided to do.

I'm also addressing similar warnings in other files.

Variables that are never referenced at all are being removed.
Variables that are set but then only referenced in conditionally
compiled code are being declared with gcc's "unused" attribute.

-- 
Grant Edwards               grant.b.edwards        Yow! Did YOU find a
                                  at               DIGITAL WATCH in YOUR box
                              gmail.com            of VELVEETA?


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



[Linux Embedded]     [U-Boot V2]     [Linux Kernel]     [Linux MIPS]     [Linux ARM]     [Linux for the Blind]     [Linux Resources]     [Photo]     [Yosemite]     [ISDN Cause Codes]     [ECOS Home]     [Site Home]

Add to Google Powered by Linux