mirror of https://github.com/neutrinolabs/xrdp
fixed Cppcheck `unusedVariable` warnings
This commit is contained in:
parent
deb8a317ba
commit
27d34e784d
|
@ -466,8 +466,6 @@ create_window(void)
|
||||||
{
|
{
|
||||||
WNDCLASS wc;
|
WNDCLASS wc;
|
||||||
DWORD style;
|
DWORD style;
|
||||||
HDC dc;
|
|
||||||
int height;
|
|
||||||
int left;
|
int left;
|
||||||
int top;
|
int top;
|
||||||
|
|
||||||
|
|
|
@ -94,10 +94,7 @@ xrdp_surface_send_surface_bits(struct xrdp_surface *self, int bpp, char *data,
|
||||||
int x, int y, int cx, int cy)
|
int x, int y, int cx, int cy)
|
||||||
{
|
{
|
||||||
RFX_RECT rect;
|
RFX_RECT rect;
|
||||||
char *buf;
|
|
||||||
int Bpp;
|
int Bpp;
|
||||||
int i;
|
|
||||||
int j;
|
|
||||||
int codecId;
|
int codecId;
|
||||||
uint32 bitmapDataLength;
|
uint32 bitmapDataLength;
|
||||||
STREAM *s;
|
STREAM *s;
|
||||||
|
|
|
@ -723,7 +723,6 @@ SCardControl(SCARDHANDLE hCard, DWORD dwControlCode, LPCVOID lpInBuffer,
|
||||||
DWORD nOutBufferSize, LPDWORD lpBytesReturned)
|
DWORD nOutBufferSize, LPDWORD lpBytesReturned)
|
||||||
{
|
{
|
||||||
LONG rv;
|
LONG rv;
|
||||||
char text[8148];
|
|
||||||
|
|
||||||
LLOGLN(10, ("SCardControl:"));
|
LLOGLN(10, ("SCardControl:"));
|
||||||
LLOGLN(10, (" hCard %p", hCard));
|
LLOGLN(10, (" hCard %p", hCard));
|
||||||
|
|
|
@ -131,8 +131,6 @@ int tcp_listen(int skt)
|
||||||
|
|
||||||
int tcp_accept(int skt)
|
int tcp_accept(int skt)
|
||||||
{
|
{
|
||||||
int ret ;
|
|
||||||
char ipAddr[256] ;
|
|
||||||
struct sockaddr_in s;
|
struct sockaddr_in s;
|
||||||
socklen_t i;
|
socklen_t i;
|
||||||
|
|
||||||
|
|
|
@ -56,14 +56,9 @@ extract_32(uint32_t *value, char *buf)
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
char *data;
|
|
||||||
char *data1;
|
|
||||||
void *channel;
|
void *channel;
|
||||||
int written = 0;
|
int written = 0;
|
||||||
int rv;
|
|
||||||
int first_time = 1;
|
int first_time = 1;
|
||||||
int length;
|
|
||||||
int bytes_read;
|
|
||||||
|
|
||||||
if (argc < 2)
|
if (argc < 2)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue