]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net/bootp.c: Fix GCC 4.6 warning
authorAnatolij Gustschin <agust@denx.de>
Sat, 19 Nov 2011 10:29:58 +0000 (10:29 +0000)
committerHeiko Schocher <hs@denx.de>
Wed, 23 Nov 2011 07:25:50 +0000 (08:25 +0100)
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>
net/bootp.c

index b789eec0d7edc3966da5197c1f7bbe5a330ce609..34124b8fc2425d6fe70e3b5cd42ec159119670df 100644 (file)
@@ -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)