ecl-cmp_clang_pragmas

Add pragmas to ecl-cmp.h to reduce Clang warnings (better fix: fix the
compiler to not produce the kind of code that triggers the warnings, but
this works for the time being.)
This commit is contained in:
B. Scott Michel 2015-10-21 14:15:03 -07:00
parent b69d0c6022
commit 7734f2e134

View file

@ -21,6 +21,11 @@
* defined */
#define _WINSOCKAPI_
#endif /* __CYGWIN__ */
/* Disable a couple of clang's more annoying diagnostics */
#pragma clang diagnostic ignored "-Wreturn-type"
#pragma clang diagnostic ignored "-Wunused-value"
#pragma clang diagnostic ignored "-Wparentheses-equality"
#include <ecl/ecl.h>
#include <math.h> /* for inline mathematics */
#include <ecl/ecl-inl.h>