Changed UNUSED to make it Windows compatible

This commit is contained in:
ritt 2019-11-27 13:24:53 +01:00
parent 46cbc18df5
commit ccd2bee54f
2 changed files with 7 additions and 3 deletions

View File

@ -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]; char str[1000], unm[256], upwd[256], host[256], subdir[256], param[256];
int port, bufsize; int port, bufsize;
int i, n; int i, n;
fd_set readfds; fd_set readfds;
struct timeval timeout; struct timeval timeout;
UNUSED(ssl);
#ifdef HAVE_SSL #ifdef HAVE_SSL
static SSL *ssl_con = NULL; static SSL *ssl_con = NULL;
#else #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; char *p;
UNUSED(bufsize);
#ifdef OS_UNIX #ifdef OS_UNIX

View File

@ -60,7 +60,7 @@
#endif #endif
/* unused function parameters */ /* unused function parameters */
#define UNUSED(x) __attribute__((unused)) x #define UNUSED(expr) do { (void)(expr); } while (0)
#ifdef _MSC_VER #ifdef _MSC_VER