]> Pileus Git - ~andy/linux/commitdiff
[media] gscpa: get rid of warning: suggest braces around empty body
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 27 Oct 2012 17:43:54 +0000 (14:43 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 28 Oct 2012 09:38:34 +0000 (07:38 -0200)
There are hundreds of messages like this one, when GSPCA debug is
disabled, when compiled with W=1:
drivers/media/usb/gspca/spca500.c:725:46: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
Get rid of it, especially as it might actually cause troubles on
some places.

Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/gspca/gspca.h

index e3eab82cd4e5d31097b064e654e18a9079d8ee43..352317d7acdbacb7bc423f954bc05738790fe9ec 100644 (file)
@@ -32,7 +32,7 @@ do {                                                          \
 #define D_USBO 0x00
 #define D_V4L2 0x0100
 #else
-#define PDEBUG(level, fmt, ...)
+#define PDEBUG(level, fmt, ...) do {} while(0)
 #endif
 
 #define GSPCA_MAX_FRAMES 16    /* maximum number of video frame buffers */