Mercurial > hg > freeDiameter
diff tests/tests.h @ 1034:f4a73a991623
Fix warning on old GCC versions
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Wed, 17 Apr 2013 18:38:12 +0800 |
parents | 000e1904074c |
children | 74bba7975864 |
line wrap: on
line diff
--- a/tests/tests.h Tue Apr 16 11:45:52 2013 +0800 +++ b/tests/tests.h Wed Apr 17 18:38:12 2013 +0800 @@ -46,10 +46,9 @@ #include <pthread.h> #include <errno.h> -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +GCC_DIAG_OFF("-Wdeprecated-declarations") #include <gcrypt.h> -#pragma GCC diagnostic pop +GCC_DIAG_ON("-Wdeprecated-declarations") /* Test timeout duration, unless -n is passed on the command line */ #ifndef TEST_TIMEOUT