Re: [PATCH] Simplify major/minor non-dynamic logic

2017-10-15 Thread Matthias Schwarzott
Am 11.10.2017 um 21:36 schrieb Mauro Carvalho Chehab: > changeset 6bbf7a855d20 ("media: dvbdev: convert DVB device types into an > enum") > added a new warning on gcc 6: > >>> drivers/media/dvb-core/dvbdev.c:86:1: warning: control reaches end of >>> non-void function [-Wreturn-type] > > That's

[PATCH] Simplify major/minor non-dynamic logic

2017-10-11 Thread Mauro Carvalho Chehab
changeset 6bbf7a855d20 ("media: dvbdev: convert DVB device types into an enum") added a new warning on gcc 6: >> drivers/media/dvb-core/dvbdev.c:86:1: warning: control reaches end of >> non-void function [-Wreturn-type] That's because gcc is not smart enough to see that all types are present at