summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgildea <empty>1995-06-03 13:35:06 +0000
committergildea <empty>1995-06-03 13:35:06 +0000
commit79d1017fc1ae91b875cc7e76ac8d9aacc9d5f76d (patch)
tree75e82a8e11a268befa416d764fdb74201e24be99
parent942c44afa1e41831181c6988faf0a3595d05c4ab (diff)
do part of minor version check at compile time to avoid compiler
warning
-rw-r--r--xc/lib/Xext/XSync.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/xc/lib/Xext/XSync.c b/xc/lib/Xext/XSync.c
index 532992ecd..33e3d2dc9 100644
--- a/xc/lib/Xext/XSync.c
+++ b/xc/lib/Xext/XSync.c
@@ -1,4 +1,4 @@
-/* $XConsortium: XSync.c,v 1.7 94/03/30 14:40:58 rws Exp $ */
+/* $XConsortium: XSync.c,v 1.8 94/04/17 20:22:56 rws Exp gildea $ */
/*
Copyright (c) 1991, 1993 X Consortium
@@ -258,8 +258,11 @@ XSyncInitialize(dpy, major_version_return, minor_version_return)
SyncHandle();
*major_version_return = rep.majorVersion;
*minor_version_return = rep.minorVersion;
- return ((rep.majorVersion == SYNC_MAJOR_VERSION) &&
- (rep.minorVersion >= SYNC_MINOR_VERSION));
+ return ((rep.majorVersion == SYNC_MAJOR_VERSION)
+#if SYNC_MINOR_VERSION > 0 /* avoid compiler warning */
+ && (rep.minorVersion >= SYNC_MINOR_VERSION)
+#endif
+ );
}
XSyncSystemCounter *