Xmu/include/X11/Xmu SysUtil.h,1.9,1.10 Xmu.h,1.9,1.10

Daniel Stone xlibs-commit@pdx.freedesktop.org
Fri Jan 28 11:22:35 PST 2005


Committed by: daniels

Update of /cvs/xlibs/Xmu/include/X11/Xmu
In directory gabe:/tmp/cvs-serv4956/include/X11/Xmu

Modified Files:
	SysUtil.h Xmu.h 
Log Message:
* CvtStdSel.c (get_os_name):
Change uname == 0 to uname >= 0 (X.Org HEAD).

* include/X11/Xmu/SysUtil.h:
* include/X11/Xmu/Xmu.h:
Add gcc format attribute (X.Org HEAD).


Index: SysUtil.h
===================================================================
RCS file: /cvs/xlibs/Xmu/include/X11/Xmu/SysUtil.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- SysUtil.h	14 Dec 2001 19:55:55 -0000	1.9
+++ SysUtil.h	28 Jan 2005 19:22:32 -0000	1.10
@@ -47,7 +47,12 @@
  int			size,
  _Xconst char		*fmt,
     ...
- );
+ )
+#if defined(__GNUC__) && \
+    ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ > 4)))
+__attribute((format(printf,3,4)))
+#endif
+;
 #endif
 
 _XFUNCPROTOEND

Index: Xmu.h
===================================================================
RCS file: /cvs/xlibs/Xmu/include/X11/Xmu/Xmu.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- Xmu.h	14 Dec 2001 19:55:59 -0000	1.9
+++ Xmu.h	28 Jan 2005 19:22:32 -0000	1.10
@@ -116,7 +116,12 @@
 #endif /* notdef */
 
 #ifndef _SYSUTIL_H_
-int XmuSnprintf(char *str, int size, _Xconst char *fmt, ...);
+int XmuSnprintf(char *str, int size, _Xconst char *fmt, ...)
+#if defined(__GNUC__) && \
+    ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ > 4)))
+__attribute((format(printf,3,4)))
+#endif
+;
 #endif
 
 #endif /* _XMU_H_ */



More information about the xlibs-commit mailing list