[Ffmpeg-devel] [PATCH] video4linux2 input
Erik Slagter
erik
Tue Feb 7 11:44:27 CET 2006
On Tue, 2006-02-07 at 10:38 +0000, M?ns Rullg?rd wrote:
> Enums are treated exactly like ints. An enum type can be assigned any
> value, and any enum types are automatically converted to other integer
> types. There is one difference: some versions of gcc will warn if and
> enum is used in a switch statement, and there isn't a case for each value
> of the enum type or a default label. This warning is of questionable
> value, and ffmpeg explicitly disables it.
If you don't want the warning imho use something like "default: {}" to
inform the compiler you didn't just forget a few entries.
I guess that 2 month course in Pascal I had to take at school, 18 years
ago, still influences my C programming ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2771 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060207/c6faa5f7/attachment.bin>
More information about the ffmpeg-devel
mailing list