summaryrefslogtreecommitdiffstats
path: root/tools/test/perform/sio_engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test/perform/sio_engine.c')
-rw-r--r--tools/test/perform/sio_engine.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/test/perform/sio_engine.c b/tools/test/perform/sio_engine.c
index 1af2318..e5a0ec8 100644
--- a/tools/test/perform/sio_engine.c
+++ b/tools/test/perform/sio_engine.c
@@ -16,10 +16,12 @@
#include "hdf5.h"
+#ifdef H5_STDC_HEADERS
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
+#endif
#ifdef H5_HAVE_UNISTD_H
#include <sys/types.h>
@@ -1264,6 +1266,13 @@ done:
* Programmer: Albert Cheng 2001/12/12
* Modifications: Support for file drivers. Christian Chilan, April, 2008
*/
+/* Disable warning for "format not a string literal" here -QAK */
+/*
+ * This pragma only needs to surround the snprintf() calls with
+ * 'temp' in the code below, but early (4.4.7, at least) gcc only
+ * allows diagnostic pragmas to be toggled outside of functions.
+ */
+H5_GCC_DIAG_OFF("format-nonliteral")
static void
do_cleanupfile(iotype iot, char *filename)
{
@@ -1326,3 +1335,4 @@ do_cleanupfile(iotype iot, char *filename)
}
}
}
+H5_GCC_DIAG_ON("format-nonliteral")