diff --git a/src/libCom/test/epicsCalcTest.cpp b/src/libCom/test/epicsCalcTest.cpp index 5436330f4..df30e68a5 100644 --- a/src/libCom/test/epicsCalcTest.cpp +++ b/src/libCom/test/epicsCalcTest.cpp @@ -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;