Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suppress clang warnings -Wparentheses-equality, -Wself-assign, unknow…
…n argument (#17860) clang-14: error: unknown argument: '-fno-optimize-strlen' /home/spang/sdk/k32w_sdk/boards/k32w061dk6/wireless_examples/openthread/reed/bm/board.c:1581:23: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality] if ( (reset_cause == RESET_WAKE_PD) ) ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ /home/spang/sdk/k32w_sdk/boards/k32w061dk6/wireless_examples/openthread/reed/bm/board.c:1581:23: note: remove extraneous parentheses around the comparison to silence this warning if ( (reset_cause == RESET_WAKE_PD) ) ~ ^ ~ /home/spang/sdk/k32w_sdk/boards/k32w061dk6/wireless_examples/openthread/reed/bm/board.c:1581:23: note: use '=' to turn this equality comparison into an assignment if ( (reset_cause == RESET_WAKE_PD) ) ^~ = 1 error generated. /home/spang/sdk/k32w_sdk/middleware/wireless/framework/Keyboard/Source/Keyboard.c:590:20: error: explicitly assigning value of variable of type 'switchScan_t' (aka 'unsigned int') to itself [-Werror,-Wself-assign] previousPressed=previousPressed; /* avoid compiler warnings */ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ 1 error generated.
- Loading branch information