Enhancement #750 » 0017-sanitize-external-libs-warning-ignores.patch
src/connection.c | ||
---|---|---|
#include "connection.h"
|
||
#include "path_util.h"
|
||
#pragma GCC diagnostic push
|
||
#pragma GCC diagnostic ignored "-Wstrict-prototypes"
|
||
extern int errno;
|
||
#pragma GCC diagnostic pop
|
||
#ifdef HAVE_LIBSSL
|
||
static int ssl_initialized = 0;
|
||
static SSL_CTX *sslctx = NULL;
|
||
... | ... | |
return 0;
|
||
}
|
||
// SSL crap: passing argument 3 of ‘SSL_CTX_ctrl’ with different width due to prototype
|
||
#pragma GCC diagnostic push
|
||
#pragma GCC diagnostic ignored "-Wtraditional-conversion"
|
||
ret = SSL_CTX_set_tmp_dh(ctx, dh);
|
||
#pragma GCC diagnostic pop
|
||
DH_free(dh);
|
||
if (ret != 1) {
|
||
... | ... | |
SSL_CTX *ctx;
|
||
if (!ssl_initialized) {
|
||
// SSL crap: passing argument 1 of ‘OPENSSL_init_ssl’ with different width due to prototype
|
||
#pragma GCC diagnostic push
|
||
#pragma GCC diagnostic ignored "-Wtraditional-conversion"
|
||
SSL_library_init();
|
||
#pragma GCC diagnostic pop
|
||
SSL_load_error_strings();
|
||
errbio = BIO_new_fp(conf_global_log_file, BIO_NOCLOSE);
|
||
... | ... | |
ERR_print_errors(errbio);
|
||
return NULL;
|
||
}
|
||
#pragma GCC diagnostic push
|
||
#pragma GCC diagnostic ignored "-Wtraditional-conversion"
|
||
// SSL crap: passing argument 3 of ‘SSL_CTX_ctrl’ with different width due to prototype
|
||
SSL_CTX_set_session_cache_mode(ctx, SSL_SESS_CACHE_BOTH);
|
||
SSL_CTX_set_timeout(ctx, (long)60);
|
||
// SSL crap: passing argument 2 of ‘SSL_CTX_set_options’ with different width due to prototype
|
||
SSL_CTX_set_options(ctx, SSL_OP_ALL);
|
||
#pragma GCC diagnostic pop
|
||
if (ciphers && !SSL_CTX_set_cipher_list(ctx, ciphers)) {
|
||
SSL_CTX_free(ctx);
|
||
return NULL;
|
||
... | ... | |
return 0;
|
||
}
|
||
// ntohs() expects uint16_t, while sockaddr_in.sin_port is an in_port_t...
|
||
#pragma GCC diagnostic push
|
||
#pragma GCC diagnostic ignored "-Wtraditional-conversion"
|
||
return ntohs(addr.sin_port);
|
||
#pragma GCC diagnostic pop
|
||
}
|
||
uint16_t connection_remoteport(connection_t *cn)
|
||
... | ... | |
return 0;
|
||
}
|
||
// ntohs() expects uint16_t, while sockaddr_in.sin_port is an in_port_t...
|
||
#pragma GCC diagnostic push
|
||
#pragma GCC diagnostic ignored "-Wtraditional-conversion"
|
||
return ntohs(addr.sin_port);
|
||
#pragma GCC diagnostic pop
|
||
}
|
||
static char *socket_ip(int fd, int remote)
|
src/log.c | ||
---|---|---|
#include <stdio.h>
|
||
#include <string.h>
|
||
#pragma GCC diagnostic push
|
||
#pragma GCC diagnostic ignored "-Wstrict-prototypes"
|
||
extern int errno;
|
||
#pragma GCC diagnostic pop
|
||
extern int log_level;
|
||
extern char *conf_log_root;
|
||
extern char *conf_log_format;
|
src/util.c | ||
---|---|---|
extern int conf_log_level;
|
||
extern int conf_log_system;
|
||
#pragma GCC diagnostic push
|
||
#pragma GCC diagnostic ignored "-Wstrict-prototypes"
|
||
extern int errno;
|
||
#pragma GCC diagnostic pop
|
||
extern FILE *conf_global_log_file;
|
||
void memory_fatal(void)
|