diff options
Diffstat (limited to 'test/file_image.c')
-rw-r--r-- | test/file_image.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/file_image.c b/test/file_image.c index 87967b7..4898b92 100644 --- a/test/file_image.c +++ b/test/file_image.c @@ -677,8 +677,7 @@ error: * '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" +H5_GCC_DIAG_OFF(format-nonliteral) static int test_get_file_image(const char * test_banner, const int file_name_num, @@ -945,7 +944,7 @@ test_get_file_image(const char * test_banner, error: return 1; } /* end test_get_file_image() */ -#pragma GCC diagnostic pop +H5_GCC_DIAG_ON(format-nonliteral) /****************************************************************************** |