sonic-net / sonic-platform-modules-dell

platform drivers for dell switches
Other
4 stars 12 forks source link

Fix compiling warnings #28

Closed stcheng closed 6 years ago

stcheng commented 6 years ago
/home/shuotian/sonic/platform-modules-dell/s6100/modules/dell_s6100_iom_cpld.c: In function ‘dell_s6100_iom_cpld_remove_client’:
/home/shuotian/sonic/platform-modules-dell/s6100/modules/dell_s6100_iom_cpld.c:54:5: warning: ‘return’ with a value, in function returning void [enabled by default]
     return 0;
     ^
/home/shuotian/sonic/platform-modules-dell/s6100/modules/dell_s6100_iom_cpld.c: In function ‘dell_s6100_iom_cpld_read’:
/home/shuotian/sonic/platform-modules-dell/s6100/modules/dell_s6100_iom_cpld.c:62:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     u8 high_reg =0x00;
     ^
/home/shuotian/sonic/platform-modules-dell/s6100/modules/dell_s6100_iom_cpld.c: In function ‘dell_s6100_iom_cpld_write’:
/home/shuotian/sonic/platform-modules-dell/s6100/modules/dell_s6100_iom_cpld.c:78:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     u8 high_reg =0x00;
     ^