client: Fixed warnings

This commit is contained in:
Armin Novak 2021-06-18 10:00:21 +02:00 committed by akallabeth
parent c4c5847f81
commit 390e329807
3 changed files with 15 additions and 9 deletions

View File

@ -153,7 +153,7 @@ static const char* x11_event_string(int event)
default:
return "UNKNOWN";
};
}
}
#ifdef WITH_DEBUG_X11

View File

@ -322,8 +322,8 @@ enum XF_EXIT_CODE
XF_EXIT_UNKNOWN = 255,
};
#define xf_lock_x11(xfc) xf_lock_x11_(xfc, __FUNCTION__);
#define xf_unlock_x11(xfc) xf_unlock_x11_(xfc, __FUNCTION__);
#define xf_lock_x11(xfc) xf_lock_x11_(xfc, __FUNCTION__)
#define xf_unlock_x11(xfc) xf_unlock_x11_(xfc, __FUNCTION__)
void xf_lock_x11_(xfContext* xfc, const char* fkt);
void xf_unlock_x11_(xfContext* xfc, const char* fkt);

View File

@ -1231,12 +1231,18 @@ size_t freerdp_client_write_rdp_file_buffer(const rdpFile* file, char* buffer, s
}
#define WRITE_SETTING_INT(fmt_, param_) \
do \
{ \
if (~(param_)) \
WRITE_SETTING_(fmt_, param_)
WRITE_SETTING_(fmt_, param_) \
} while (0)
#define WRITE_SETTING_STR(fmt_, param_) \
do \
{ \
if (~(size_t)(param_)) \
WRITE_SETTING_(fmt_, param_)
WRITE_SETTING_(fmt_, param_) \
} while (0)
/* integer parameters */
WRITE_SETTING_INT("use multimon:i:%" PRIu32, file->UseMultiMon);