This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to suppress this warning " empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]"

Hi,

I am using Keil uVision V5.37.0.0 and compiler version is 6.18, I am getting tons of above warnings in different files with this version of uVision, the same was built without any warnings on previous versions of compiler (V6.10).

could someone please let me know how to use Wextra-semi-stmt to silence this warning?

I tried to add this in Misc controls as shown below, but it was not helping, please let me know whether it is the right place to add this plug here.

I am not supposed to edit code and also this additional semi colon is not going to harm, so looking for solutions to suppress the warnings instead of editing so many files. 

Thanks in advance.

Parents Reply Children