devices/generic.c warning: ISO C90 forbids mixed declarations and code
Closed this issue · 3 comments
koppi commented
Please note: this code produces the following warning at compile time:
devices/generic.c: In function ‘ec_gen_device_create_socket’:
devices/generic.c:218:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaratio
n-after-statement]
struct net *nd_net = dev_net(dev->netdev);
^
koppi commented
Please add an extra declaration statement:
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0))
struct net *nd_net;
#endif
fjes commented
Thanks for the feedback, you are right about these issues and we will fix them asap.