aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-11-19 10:29:58 +0000
committerHeiko Schocher <hs@denx.de>2011-11-23 08:25:50 +0100
commitc0fe04bf6559c5cb504f107d81f6a80b9416e986 (patch)
tree3994b26db1d0092c1578b6f2841ed42e8faa24f6
parent5bf2766b4b5e59c7648a0d4137b17f3a46b5a9bb (diff)
downloadu-boot-c0fe04bf6559c5cb504f107d81f6a80b9416e986.zip
u-boot-c0fe04bf6559c5cb504f107d81f6a80b9416e986.tar.gz
u-boot-c0fe04bf6559c5cb504f107d81f6a80b9416e986.tar.bz2
net/bootp.c: Fix GCC 4.6 warning
Fix: bootp.c: In function 'BootpCopyNetParams': bootp.c:108:11: warning: unused variable 'tmp_ip' [-Wunused-variable] Signed-off-by: Anatolij Gustschin <agust@denx.de>
-rw-r--r--net/bootp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bootp.c b/net/bootp.c
index b789eec..34124b8 100644
--- a/net/bootp.c
+++ b/net/bootp.c
@@ -17,6 +17,7 @@
#ifdef CONFIG_STATUS_LED
#include <status_led.h>
#endif
+#include <linux/compiler.h>
#define BOOTP_VENDOR_MAGIC 0x63825363 /* RFC1048 Magic Cookie */
@@ -105,7 +106,7 @@ static int BootpCheckPkt(uchar *pkt, unsigned dest, unsigned src, unsigned len)
*/
static void BootpCopyNetParams(Bootp_t *bp)
{
- IPaddr_t tmp_ip;
+ __maybe_unused IPaddr_t tmp_ip;
NetCopyIP(&NetOurIP, &bp->bp_yiaddr);
#if !defined(CONFIG_BOOTP_SERVERIP)