[PATCH xorgproto] randrproto: Fix missing #undef RRLease

Adam Jackson ajax at redhat.com
Fri Mar 16 23:11:21 UTC 2018


clang did not like this, and it's hard to blame it:

../randr/randrstr.h:66:13: warning: redefinition of typedef 'CARD32' is a C11 feature [-Wtypedef-redefinition]
typedef XID RRLease;
            ^
/opt/X11/include/X11/extensions/randrproto.h:53:17: note: expanded from macro 'RRLease'
                ^
/opt/X11/include/X11/Xmd.h:111:23: note: previous definition is here
typedef unsigned long CARD32;

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 include/X11/extensions/randrproto.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/X11/extensions/randrproto.h b/include/X11/extensions/randrproto.h
index 712c8b5..b0fd7f0 100644
--- a/include/X11/extensions/randrproto.h
+++ b/include/X11/extensions/randrproto.h
@@ -1126,6 +1126,7 @@ typedef struct {
 } xRRDeleteMonitorReq;
 #define sz_xRRDeleteMonitorReq	12
 
+#undef RRLease
 #undef RRModeFlags
 #undef RRCrtc
 #undef RRMode
-- 
2.16.2



More information about the xorg-devel mailing list