zlib/zlib-1.2.2-format.patch
OBS User autobuild f2140951f9 Accepting request 45298 from Archiving
Copy from Archiving/zlib based on submit request 45298 from user elvigia

OBS-URL: https://build.opensuse.org/request/show/45298
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zlib?expand=0&rev=19
2010-08-13 21:57:54 +00:00

18 lines
585 B
Diff

Index: zlib.h
===================================================================
--- zlib.h.orig
+++ zlib.h
@@ -1256,7 +1256,11 @@ ZEXTERN int ZEXPORT gzwrite OF((gzFile f
error.
*/
-ZEXTERN int ZEXPORTVA gzprintf OF((gzFile file, const char *format, ...));
+ZEXTERN int ZEXPORTVA gzprintf OF((gzFile file, const char *format, ...))
+#ifdef __GNUC__
+ __attribute__((__format__(__printf__,2,3)))
+#endif
+;
/*
Converts, formats, and writes the arguments to the compressed file under
control of the format string, as in fprintf. gzprintf returns the number of