Mercurial > trustbridge
diff common/certhelp.h @ 1264:3cd8dd706aaa
Add possibility to build with CLANG and document it.
This only works for now with the c parts of the code.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 26 Sep 2014 17:59:49 +0200 |
parents | 17e1c8f37d72 |
children | 265583011f24 |
line wrap: on
line diff
--- a/common/certhelp.h Fri Sep 26 16:06:44 2014 +0200 +++ b/common/certhelp.h Fri Sep 26 17:59:49 2014 +0200 @@ -9,12 +9,16 @@ #define CERTHELP_H /* Polarssl mh.h contains a conversion which gcc warns about */ +#ifndef __clang__ #pragma GCC diagnostic ignored "-Wsign-conversion" #pragma GCC diagnostic ignored "-Wconversion" +#endif #include <polarssl/oid.h> #include <polarssl/x509_crt.h> +#ifndef __clang__ #pragma GCC diagnostic pop #pragma GCC diagnostic pop +#endif #define CERT_OID_CN (unsigned char *)OID_AT_CN "\0" #define CERT_OID_O (unsigned char *)OID_AT_ORGANIZATION "\0"