From: Marek Vasut Date: Tue, 25 Oct 2011 09:39:16 +0000 (+0200) Subject: GCC4.6: Squash warning in usb_storage.c X-Git-Tag: v2011.12-rc1~375 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=86bd3ff8fd31fc1b4ef6334ea3f0c10ae2ee6c90;p=oweals%2Fu-boot.git GCC4.6: Squash warning in usb_storage.c usb_storage.c: In function ‘usb_stor_CB_reset’: usb_storage.c:466:6: warning: variable ‘result’ set but not used [-Wunused-but-set-variable] Signed-off-by: Marek Vasut Cc: Wolfgang Denk Cc: Simon Glass Cc: Mike Frysinger --- diff --git a/common/usb_storage.c b/common/usb_storage.c index 16667f3948..10e786fa95 100644 --- a/common/usb_storage.c +++ b/common/usb_storage.c @@ -56,16 +56,17 @@ #include #include -#undef USB_STOR_DEBUG #undef BBB_COMDAT_TRACE #undef BBB_XPORT_TRACE #ifdef USB_STOR_DEBUG -#define USB_STOR_PRINTF(fmt, args...) printf(fmt , ##args) +#define USB_BLK_DEBUG 1 #else -#define USB_STOR_PRINTF(fmt, args...) +#define USB_BLK_DEBUG 0 #endif +#define USB_STOR_PRINTF(fmt, args...) debug_cond(USB_BLK_DEBUG, fmt, ##args) + #include /* direction table -- this indicates the direction of the data * transfer for each command code -- a 1 indicates input