diff common/listutil.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 2a1206932f53
children 8d27c6d226cd
line wrap: on
line diff
--- a/common/listutil.c	Fri Sep 26 16:06:44 2014 +0200
+++ b/common/listutil.c	Fri Sep 26 17:59:49 2014 +0200
@@ -30,12 +30,16 @@
 #include "pubkey-test.h"
 #endif
 
+#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>
+#ifndef __clang__
 #pragma GCC diagnostic pop
+#endif
 
 #define MAX_FILESIZE (MAX_LINE_LENGTH * MAX_LINES)
 

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