Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1175

Warning code for catching semicolon after a while loop

$
0
0

Hello all.

I wonder if there is a warning code which

flags that there is placed an unintentional semicolon 

after a while loop.

while(condition);

{

  Body

}

I have already sought after the warning code my

self in the documentation and have written

code trying to provoke a warning but without

any luck. I have enabled all warnings but to

no avail. The compiler is Intel C++ 2019.

If there is no warning code for this, my vain

hope is that Intel will in time add an warning

for this, because I cannot be the first or the last

to have this kind of bug.

Please be kind it is my first posting in this

forum. Hope my attempt at writing in English

is understandable.

 

Best regards

Jan, DK. 


Viewing all articles
Browse latest Browse all 1175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>