Fix compile time warnings about -no-install on Darwin/clang

This commit is contained in:
Trevor Bentley
2017-10-26 11:59:56 +02:00
parent 05ac49abbb
commit a7eb0657f1
5 changed files with 52 additions and 12 deletions
+5
View File
@@ -39,6 +39,9 @@
#include <openssl/x509.h>
#include <openssl/rand.h>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpointer-sign"
void dump_hex(const unsigned char *buf, unsigned int len, FILE *output, int space) {
unsigned int i;
for (i = 0; i < len; i++) {
@@ -662,3 +665,5 @@ int main(void) {
return EXIT_SUCCESS;
}
#pragma clang diagnostic pop