|
|||||||||||||
I'd really appreciate a warning for "empty bodies" or whatever it is called, i.e. things like
for(...);
while(...);
if(...);
If written like
if(...) { };
it is OK.
Only useful for if (...) else constructs, because there's too much code that legitimately uses null statements (empty blocks) in while or for loops.
Also note that you should not place a semicolon after the constructs shown, if (condition) {}; else {} is actually invalid syntax (that's different from struct/enums - but there the braces don't embrace a block).
You must be a registered user to add a comment here. If you've already registered, please log in. If you haven't registered yet, please register and log in.
Note: the LabWindows/CVI Idea Exchange is not the appropriate forum to submit technical support questions.
The LabWindows/CVI R&D team is committed to reviewing every idea submitted via the LabWindows/CVI Idea Exchange. However, we cannot guarantee the implementation of any LabWindows/CVI Idea Exchange submission.
My Profile | Privacy |
Legal |
Contact NI
© 2011 National Instruments Corporation. All rights reserved. | E-Mail this Page
|
||

E-Mail this Page