From: Anatolij Gustschin Date: Sat, 19 Nov 2011 10:29:58 +0000 (+0000) Subject: net/bootp.c: Fix GCC 4.6 warning X-Git-Tag: v2011.12-rc1~124^2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c0fe04bf6559c5cb504f107d81f6a80b9416e986;p=oweals%2Fu-boot.git 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 --- diff --git a/net/bootp.c b/net/bootp.c index b789eec0d7..34124b8fc2 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -17,6 +17,7 @@ #ifdef CONFIG_STATUS_LED #include #endif +#include #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)