libCom/test: Suppress g++ build warnings from epicsCalcTest

Newer versions of gcc support #pragma GCC diagnostic
This commit is contained in:
Andrew Johnson
2011-04-07 17:25:02 -05:00
parent 1106bab73e
commit 8418aa059a

View File

@@ -224,6 +224,14 @@ static inline double MIN(double a, double b, double c, double d, double e,
return MIN(MIN(a,b,c,d,e,f,g,h,i,j,k),l);
}
/* The test code below generates lots of spurious warnings because
* it's making sure that our operator priorities match those of C.
* Disable them to quieten the compilation process where possible.
*/
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)
# pragma GCC diagnostic ignored "-Wparentheses"
#endif
MAIN(epicsCalcTest)
{
int repeat;