comparison 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
comparison
equal deleted inserted replaced
1263:827abc0923a8 1264:3cd8dd706aaa
254 } 254 }
255 return retval; 255 return retval;
256 } 256 }
257 #else /* WIN32 */ 257 #else /* WIN32 */
258 258
259 #ifndef __clang__
259 #pragma GCC diagnostic ignored "-Wconversion" 260 #pragma GCC diagnostic ignored "-Wconversion"
261 #endif
260 /* Polarssl mh.h contains a conversion which gcc warns about */ 262 /* Polarssl mh.h contains a conversion which gcc warns about */
261 #include <polarssl/pk.h> 263 #include <polarssl/pk.h>
262 #include <polarssl/base64.h> 264 #include <polarssl/base64.h>
263 #include <polarssl/sha256.h> 265 #include <polarssl/sha256.h>
264 #include <polarssl/error.h> 266 #include <polarssl/error.h>
265 #include <polarssl/x509_crt.h> 267 #include <polarssl/x509_crt.h>
268 #ifndef __clang__
266 #pragma GCC diagnostic pop 269 #pragma GCC diagnostic pop
270 #endif
267 271
268 bin_verify_result 272 bin_verify_result
269 verify_binary_linux(const char *filename, size_t name_len) 273 verify_binary_linux(const char *filename, size_t name_len)
270 { 274 {
271 int ret = -1; 275 int ret = -1;

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