> From: Adam Jackson <a...@redhat.com> > Date: Sun, 23 Jan 2011 23:18:08 -0500 > > 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>' > > Signed-off-by: Adam Jackson <a...@redhat.com>
Reviewed-by: Mark Kettenis <kette...@openbsd.org> > --- > hw/xfree86/modes/xf86Crtc.c | 1 - > 1 files changed, 0 insertions(+), 1 deletions(-) > > diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c > index c4470c3..10ce7f9 100644 > --- a/hw/xfree86/modes/xf86Crtc.c > +++ b/hw/xfree86/modes/xf86Crtc.c > @@ -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; > _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel