client: Fixed warnings
This commit is contained in:
parent
c4c5847f81
commit
390e329807
@ -153,7 +153,7 @@ static const char* x11_event_string(int event)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
return "UNKNOWN";
|
return "UNKNOWN";
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WITH_DEBUG_X11
|
#ifdef WITH_DEBUG_X11
|
||||||
|
@ -322,8 +322,8 @@ enum XF_EXIT_CODE
|
|||||||
XF_EXIT_UNKNOWN = 255,
|
XF_EXIT_UNKNOWN = 255,
|
||||||
};
|
};
|
||||||
|
|
||||||
#define xf_lock_x11(xfc) xf_lock_x11_(xfc, __FUNCTION__);
|
#define xf_lock_x11(xfc) xf_lock_x11_(xfc, __FUNCTION__)
|
||||||
#define xf_unlock_x11(xfc) xf_unlock_x11_(xfc, __FUNCTION__);
|
#define xf_unlock_x11(xfc) xf_unlock_x11_(xfc, __FUNCTION__)
|
||||||
|
|
||||||
void xf_lock_x11_(xfContext* xfc, const char* fkt);
|
void xf_lock_x11_(xfContext* xfc, const char* fkt);
|
||||||
void xf_unlock_x11_(xfContext* xfc, const char* fkt);
|
void xf_unlock_x11_(xfContext* xfc, const char* fkt);
|
||||||
|
@ -1231,12 +1231,18 @@ size_t freerdp_client_write_rdp_file_buffer(const rdpFile* file, char* buffer, s
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define WRITE_SETTING_INT(fmt_, param_) \
|
#define WRITE_SETTING_INT(fmt_, param_) \
|
||||||
|
do \
|
||||||
|
{ \
|
||||||
if (~(param_)) \
|
if (~(param_)) \
|
||||||
WRITE_SETTING_(fmt_, param_)
|
WRITE_SETTING_(fmt_, param_) \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
#define WRITE_SETTING_STR(fmt_, param_) \
|
#define WRITE_SETTING_STR(fmt_, param_) \
|
||||||
|
do \
|
||||||
|
{ \
|
||||||
if (~(size_t)(param_)) \
|
if (~(size_t)(param_)) \
|
||||||
WRITE_SETTING_(fmt_, param_)
|
WRITE_SETTING_(fmt_, param_) \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
/* integer parameters */
|
/* integer parameters */
|
||||||
WRITE_SETTING_INT("use multimon:i:%" PRIu32, file->UseMultiMon);
|
WRITE_SETTING_INT("use multimon:i:%" PRIu32, file->UseMultiMon);
|
||||||
|
Loading…
Reference in New Issue
Block a user