summaryrefslogtreecommitdiffstats
path: root/test/file_image.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-08-06 17:59:22 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-08-06 17:59:22 (GMT)
commit11e0151645566c9c94f11eca1556af6a316bd335 (patch)
treee1ec62d370e49778f00efe8baf9f65f4cae302f6 /test/file_image.c
parent6fb7471ecd106e022d7946ab140ebb47f85072bf (diff)
downloadhdf5-11e0151645566c9c94f11eca1556af6a316bd335.zip
hdf5-11e0151645566c9c94f11eca1556af6a316bd335.tar.gz
hdf5-11e0151645566c9c94f11eca1556af6a316bd335.tar.bz2
Merge mostly CMake changes from develop and file cleanup
Diffstat (limited to 'test/file_image.c')
-rw-r--r--test/file_image.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/file_image.c b/test/file_image.c
index 2018973..7859626 100644
--- a/test/file_image.c
+++ b/test/file_image.c
@@ -666,6 +666,14 @@ error:
*
******************************************************************************
*/
+/* Disable warning for "format not a string literal" here -QAK */
+/*
+ * This pragma only needs to surround the snprintf() calls with
+ * 'member_file_name' in the code below, but early (4.4.7, at least) gcc only
+ * allows diagnostic pragmas to be toggled outside of functions.
+ */
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
static int
test_get_file_image(const char * test_banner,
const int file_name_num,
@@ -906,6 +914,7 @@ test_get_file_image(const char * test_banner,
error:
return 1;
} /* end test_get_file_image() */
+#pragma GCC diagnostic pop
/******************************************************************************