Skip to content

Commit b3f4e1e

Browse files
Timo KokkonenMauro Carvalho Chehab
authored andcommitted
[media] saa7134.h: Suppress compiler warnings when CONFIG_VIDEO_SAA7134_RC is not set
If the said config optio is not set, the compiler will spill out many warnings about statements with no effect, such as: Casting the zero to void will cure the warning. Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent bc54919 commit b3f4e1e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎drivers/media/video/saa7134/saa7134.h‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -843,10 +843,10 @@ void saa7134_probe_i2c_ir(struct saa7134_dev *dev);
843843
int saa7134_ir_start(struct saa7134_dev *dev);
844844
void saa7134_ir_stop(struct saa7134_dev *dev);
845845
#else
846-
#define saa7134_input_init1(dev) (0)
847-
#define saa7134_input_fini(dev) (0)
848-
#define saa7134_input_irq(dev) (0)
849-
#define saa7134_probe_i2c_ir(dev) (0)
850-
#define saa7134_ir_start(dev) (0)
851-
#define saa7134_ir_stop(dev) (0)
846+
#define saa7134_input_init1(dev) ((void)0)
847+
#define saa7134_input_fini(dev) ((void)0)
848+
#define saa7134_input_irq(dev) ((void)0)
849+
#define saa7134_probe_i2c_ir(dev) ((void)0)
850+
#define saa7134_ir_start(dev) ((void)0)
851+
#define saa7134_ir_stop(dev) ((void)0)
852852
#endif

0 commit comments

Comments
 (0)