comparison 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
comparison
equal deleted inserted replaced
1263:827abc0923a8 1264:3cd8dd706aaa
28 #include "pubkey-release.h" 28 #include "pubkey-release.h"
29 #else 29 #else
30 #include "pubkey-test.h" 30 #include "pubkey-test.h"
31 #endif 31 #endif
32 32
33 #ifndef __clang__
33 #pragma GCC diagnostic ignored "-Wconversion" 34 #pragma GCC diagnostic ignored "-Wconversion"
35 #endif
34 /* Polarssl mh.h contains a conversion which gcc warns about */ 36 /* Polarssl mh.h contains a conversion which gcc warns about */
35 #include <polarssl/pk.h> 37 #include <polarssl/pk.h>
36 #include <polarssl/base64.h> 38 #include <polarssl/base64.h>
37 #include <polarssl/sha256.h> 39 #include <polarssl/sha256.h>
40 #ifndef __clang__
38 #pragma GCC diagnostic pop 41 #pragma GCC diagnostic pop
42 #endif
39 43
40 #define MAX_FILESIZE (MAX_LINE_LENGTH * MAX_LINES) 44 #define MAX_FILESIZE (MAX_LINE_LENGTH * MAX_LINES)
41 45
42 #define READ_FILE_UNREADABLE -1 46 #define READ_FILE_UNREADABLE -1
43 #define READ_FILE_TOO_LARGE -2 47 #define READ_FILE_TOO_LARGE -2

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