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;
| ^~~~~
|
||
|---|---|---|
| .. | ||
| CO_LSS.h | ||
| CO_LSSmaster.c | ||
| CO_LSSmaster.h | ||
| CO_LSSslave.c | ||
| CO_LSSslave.h | ||