[Digikam-devel] gcc 4.4 warnings...

Kåre Särs kare.sars at iki.fi
Wed Jun 24 21:29:55 BST 2009


On Wednesday 24 June 2009 11:48:54 am Andi Clemens wrote:

> didn't know you need to handle every possible switch case. I use an if-
> statement now.
>

You only get the warning if you do not have a "default" in the switch (not 
handling all cases). Adding a "default" case will remove the warning. 

I think it is a great feature that it warns you if you have forgotten a switch 
case :)

Kåre






More information about the Digikam-devel mailing list