Mailinglist Archive: radeonhd (363 mails)
| < Previous | Next > |
[radeonhd] Bad switch statement in rhd_atombios.c
- From: Ales Fiala <ales.fiala@xxxxxx>
- Date: Tue, 24 Mar 2009 16:32:41 -0600
- Message-id: <49C95F89.2080105@xxxxxx>
The file rhd_atombios.c has the following statement around line 1553:
switch (Config->u.lvds2.SpatialDither)
lvds->ucSpatial |= PANEL_ENCODER_SPATIAL_DITHER_EN;
My compiler rejects the statement inside the switch as "unreachable".
Indeed, my ANSI C book says that if there are no case labels and no default label then no statement gets executed.
What was intended by this statement? Can someone fix it?
Thanks
Ales Fiala
--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx
switch (Config->u.lvds2.SpatialDither)
lvds->ucSpatial |= PANEL_ENCODER_SPATIAL_DITHER_EN;
My compiler rejects the statement inside the switch as "unreachable".
Indeed, my ANSI C book says that if there are no case labels and no default label then no statement gets executed.
What was intended by this statement? Can someone fix it?
Thanks
Ales Fiala
--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx
| < Previous | Next > |