1
0
Fork 0
CANopenNode/305
Freddie Chopin ddc2443cfd Reduce scope of local variables to avoid warning about shadowing
After adding -Wshadow to build options, gcc produced following warning:

305/CO_LSSslave.c: In function ‘CO_LSSslave_receive’:
305/CO_LSSslave.c:114:30: warning: declaration of ‘valSw’ shadows a
previous local [-Wshadow]
  114 |                     uint32_t valSw;
      |                              ^~~~~
305/CO_LSSslave.c:76:22: note: shadowed declaration is here
   76 |             uint32_t valSw;
      |                      ^~~~~
2020-10-24 14:46:34 +02:00
..
CO_LSS.h Better organised configuration macros (CO_config.h): 2020-09-14 15:50:21 +02:00
CO_LSSmaster.c Better organised configuration macros (CO_config.h): 2020-09-14 15:50:21 +02:00
CO_LSSmaster.h Better organised configuration macros (CO_config.h): 2020-09-14 15:50:21 +02:00
CO_LSSslave.c Reduce scope of local variables to avoid warning about shadowing 2020-10-24 14:46:34 +02:00
CO_LSSslave.h Better organised configuration macros (CO_config.h): 2020-09-14 15:50:21 +02:00