summaryrefslogtreecommitdiff
path: root/tools/ivytestready.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ivytestready.c')
-rwxr-xr-xtools/ivytestready.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ivytestready.c b/tools/ivytestready.c
index 35e0eae..46fe1de 100755
--- a/tools/ivytestready.c
+++ b/tools/ivytestready.c
@@ -104,12 +104,12 @@ int main(int argc, char *argv[])
IvyInit (me, ready_message, NULL,NULL,NULL,NULL);
IvySetBindCallback( binCB, 0 );
-#if defined(__GNUC__)
+#if defined(__GNUC__) && __GNUC_PREREQ(4,7)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-security"
#endif
IvyBindMsg (Ready, NULL, ready_bind);
-#if defined(__GNUC__)
+#if defined(__GNUC__) && __GNUC_PREREQ(4,7)
#pragma GCC diagnostic pop
#endif