23 lines
811 B
Diff
23 lines
811 B
Diff
--- libnfs-libnfs-2.0.0/include/libnfs-private.h.orig 2018-05-29 12:17:18.089075800 +0300
|
|
+++ libnfs-libnfs-2.0.0/include/libnfs-private.h 2018-05-29 12:20:11.296180000 +0300
|
|
@@ -191,13 +191,17 @@
|
|
void rpc_error_all_pdus(struct rpc_context *rpc, const char *error);
|
|
|
|
void rpc_set_error(struct rpc_context *rpc, const char *error_string, ...)
|
|
-#ifdef __GNUC__
|
|
+#if defined(__MINGW32__) && defined(__USE_MINGW_ANSI_STDIO)
|
|
+ __attribute__((format(gnu_printf, 2, 3)))
|
|
+#elif defined __GNUC__
|
|
__attribute__((format(printf, 2, 3)))
|
|
#endif
|
|
;
|
|
|
|
void nfs_set_error(struct nfs_context *nfs, char *error_string, ...)
|
|
-#ifdef __GNUC__
|
|
+#if defined(__MINGW32__) && defined(__USE_MINGW_ANSI_STDIO)
|
|
+ __attribute__((format(gnu_printf, 2, 3)))
|
|
+#elif defined __GNUC__
|
|
__attribute__((format(printf, 2, 3)))
|
|
#endif
|
|
;
|