From 3bba51658b025ee6075eb9ebfe0ee32ee8b2c750 Mon Sep 17 00:00:00 2001 From: bustico Date: Mon, 25 Nov 2013 10:43:04 +0000 Subject: ° protect gcc pragma not available on old version of gcc ° tcl loop compiled for tcl8.4 --- tools/ivytestready.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/ivytestready.c') 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 -- cgit v1.1