xfree86: warning fix
Did you know that anonymous enums with function scope will not only override the enum values from global scope, but will be treated as entirely different types? C's type system just rules. xf86Crtc.c: In function 'handle_detailed_monrec': xf86Crtc.c:1555:33: warning: comparison between 'enum det_monrec_source' and 'enum <anonymous>' xf86Crtc.c:1562:33: warning: comparison between 'enum det_monrec_source' and 'enum <anonymous>' Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
ae16c5796f
commit
994b7b3dc9
|
@ -1542,7 +1542,6 @@ struct det_monrec_parameter {
|
|||
static void handle_detailed_monrec(struct detailed_monitor_section *det_mon,
|
||||
void *data)
|
||||
{
|
||||
enum { sync_config, sync_edid, sync_default };
|
||||
struct det_monrec_parameter *p;
|
||||
p = (struct det_monrec_parameter *)data;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user