Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » switch / case / break warnings
switch / case / break warnings [message #781117] Fri, 20 January 2012 15:36 Go to next message
Harry Houdini is currently offline Harry HoudiniFriend
Messages: 142
Registered: February 2010
Senior Member
Hello,

Is is possible to put in the code, at some specific locations, that Codan shouln't warn when a break is missing ?
Re: switch / case / break warnings [message #782256 is a reply to message #781117] Mon, 23 January 2012 12:21 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
You should add
//no break

just before the next case:

See Preferences->C/C++->CODAN
Then select the checker "No break at end of case" and click "Customize selected. There you can see the comment to suppress this warning.


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: switch / case / break warnings [message #782260 is a reply to message #782256] Mon, 23 January 2012 12:26 Go to previous message
Harry Houdini is currently offline Harry HoudiniFriend
Messages: 142
Registered: February 2010
Senior Member
OK, thank you !
Previous Topic:Plugin that adds path include directory?
Next Topic:autotools
Goto Forum:
  


Current Time: Fri Apr 26 00:11:36 GMT 2024

Powered by FUDForum. Page generated in 0.03106 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top