diff --git a/src/elogd.c b/src/elogd.c index 4ba4a99f..5956d82c 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -2545,12 +2545,15 @@ void split_url(const char *url, char *host, int *port, char *subdir, char *param /*-------------------------------------------------------------------*/ -int retrieve_url(LOGBOOK *lbs, const char *url, UNUSED(int ssl), char **buffer) { +int retrieve_url(LOGBOOK *lbs, const char *url, int ssl, char **buffer) { char str[1000], unm[256], upwd[256], host[256], subdir[256], param[256]; int port, bufsize; int i, n; fd_set readfds; struct timeval timeout; + + UNUSED(ssl); + #ifdef HAVE_SSL static SSL *ssl_con = NULL; #else @@ -12761,8 +12764,9 @@ void remove_crlf(char *buffer) { /*------------------------------------------------------------------*/ -void adjust_crlf(char *buffer, UNUSED(int bufsize)) { +void adjust_crlf(char *buffer, int bufsize) { char *p; + UNUSED(bufsize); #ifdef OS_UNIX diff --git a/src/elogd.h b/src/elogd.h index 2c92a9e3..321b22c5 100644 --- a/src/elogd.h +++ b/src/elogd.h @@ -60,7 +60,7 @@ #endif /* unused function parameters */ -#define UNUSED(x) __attribute__((unused)) x +#define UNUSED(expr) do { (void)(expr); } while (0) #ifdef _MSC_VER