[Top][All Lists]

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

[lwip-devel] [bug #26523] Compiler Warnings

From: Bill Auerbach
Subject: [lwip-devel] [bug #26523] Compiler Warnings
Date: Wed, 13 May 2009 13:43:30 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/2009042316 Firefox/3.0.10

Follow-up Comment #10, bug #26523 (project lwip):

The problem is, standard C forces upcasting in some cases (most notably the
>> and << operators) and you're going to get a downsize warning that you
didn't even create in your code.  Few if any compilers turn this warning on by
default for the reason we see: causing many downsize warnings that really have
no effect.  Anding and shifting bytes for endian swaps will cause warnings
without casting the result of the and to a u8_t.  If the warnings are a
problem, I find it falls out pretty quickly in testing.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]