[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #6521] lwip doesn't compile in 64_bit computers
From: |
Jonathan Larmour |
Subject: |
[lwip-devel] [patch #6521] lwip doesn't compile in 64_bit computers |
Date: |
Wed, 18 Feb 2009 21:16:32 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060513 Fedora/1.0.8-1.1.fc3.1.legacy Firefox/1.0.8 |
Follow-up Comment #7, patch #6521 (project lwip):
If we're concerned about portability with the use of %d for u8_t we could
always explicitly cast the argument to an 'int'.
C99 says you can use %zd for something of type size_t, but since it's not in
C90 I wouldn't recommend it. That implies a new define (perhaps defaulting to
%zd though?).
On GCC, format strings are checked if using -Wformat (which is implied by
-Wall). If porters are using printf() and friends, then this checking would
just happen with those arguments. For any other function, their prototype for
it would need to include __attribute__((format(....))). Essentially it's a
port issue.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?6521>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/