Changed UNUSED to make it Windows compatible

This commit is contained in:
2019-11-27 13:24:53 +01:00
parent 46cbc18df5
commit ccd2bee54f
2 changed files with 7 additions and 3 deletions
+6 -2
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];
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
+1 -1
View File
@@ -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