]> git.tuebingen.mpg.de Git - paraslash.git/commit
fade: Quiesce two gcc warnings.
authorAndre Noll <maan@systemlinux.org>
Wed, 16 Mar 2011 16:56:43 +0000 (17:56 +0100)
committerAndre Noll <maan@systemlinux.org>
Wed, 16 Mar 2011 16:56:43 +0000 (17:56 +0100)
commit38c80b2b03dc357fbc28f8ba04764f1e1741078a
tree794d03f957081a7ab55ae4b17abea10cbc85d53a
parent0b59e8c354f4ea0b322fa84d57b355c12c87823b
fade: Quiesce two gcc warnings.

Ubuntu Lucid's gcc 4.4.3 does not like it if not each possible value
of an enumeration is handled in the body of a switch statement.

Since gengetopt for some reason always creates an additional xxx_NULL
value in options of type enum, this more or less means we have to
introduce default: cases to avoid warnings of the form

fade.c:113: warning: enumeration value ‘mixer_channel__NULL’ not handled in switch
fade.c:346: warning: enumeration value ‘mode__NULL’ not handled in switch

Fortunately, these are the only two warnings, so add default: cases
to make gcc happy.
fade.c