[Digikam-devel] gcc 4.4 warnings...

Andi Clemens andi.clemens at gmx.net
Wed Jun 24 22:05:31 BST 2009


Yes, but I don't like having
default: break;
in the code :-) An if is shorter here...

Is this a new feature of gcc4.4?
Never seen this before.

Andi

On Wednesday 24 June 2009 22:29:55 Kåre Särs wrote:
> 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
>
>
>
> _______________________________________________
> Digikam-devel mailing list
> Digikam-devel at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-devel




More information about the Digikam-devel mailing list