diff common/binverify.c @ 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 edbf5e5e88f4
children 28885e8c891f
line wrap: on
line diff
--- a/common/binverify.c	Fri Sep 26 16:06:44 2014 +0200
+++ b/common/binverify.c	Fri Sep 26 17:59:49 2014 +0200
@@ -256,14 +256,18 @@
 }
 #else /* WIN32 */
 
+#ifndef __clang__
 #pragma GCC diagnostic ignored "-Wconversion"
+#endif
 /* Polarssl mh.h contains a conversion which gcc warns about */
 #include <polarssl/pk.h>
 #include <polarssl/base64.h>
 #include <polarssl/sha256.h>
 #include <polarssl/error.h>
 #include <polarssl/x509_crt.h>
+#ifndef __clang__
 #pragma GCC diagnostic pop
+#endif
 
 bin_verify_result
 verify_binary_linux(const char *filename, size_t name_len)

http://wald.intevation.org/projects/trustbridge/