diff --git a/bitmap.c b/bitmap.c index ed10f9e..8c4a04c 100644 --- a/bitmap.c +++ b/bitmap.c @@ -749,6 +749,7 @@ bitmap_decompress3(uint8 * output, int width, int height, uint8 * input, int siz static int process_plane(uint8 * in, int width, int height, uint8 * out, int size) { + UNUSED(size); int indexw; int indexh; int code; diff --git a/channels.c b/channels.c index 3c7e8ea..fd81b59 100644 --- a/channels.c +++ b/channels.c @@ -69,6 +69,7 @@ channel_register(char *name, uint32 flags, void (*callback) (STREAM)) STREAM channel_init(VCHANNEL * channel, uint32 length) { + UNUSED(channel); STREAM s; s = sec_init(g_encryption ? SEC_ENCRYPT : 0, length + 8); diff --git a/cssp.c b/cssp.c index db92733..b1dbe69 100644 --- a/cssp.c +++ b/cssp.c @@ -680,6 +680,7 @@ cssp_read_tsrequest(STREAM token, STREAM pubkey) RD_BOOL cssp_connect(char *server, char *user, char *domain, char *password, STREAM s) { + UNUSED(s); OM_uint32 actual_time; gss_cred_id_t cred; gss_buffer_desc input_tok, output_tok; diff --git a/ctrl.c b/ctrl.c index 744aee5..6a36157 100644 --- a/ctrl.c +++ b/ctrl.c @@ -365,6 +365,7 @@ ctrl_add_fds(int *n, fd_set * rfds) void ctrl_check_fds(fd_set * rfds, fd_set * wfds) { + UNUSED(wfds); int ns, res, offs; struct sockaddr_un fsaun; socklen_t fromlen; diff --git a/disk.c b/disk.c index e720815..36fac03 100644 --- a/disk.c +++ b/disk.c @@ -739,6 +739,7 @@ disk_query_information(RD_NTHANDLE handle, uint32 info_class, STREAM out) RD_NTSTATUS disk_set_information(RD_NTHANDLE handle, uint32 info_class, STREAM in, STREAM out) { + UNUSED(out); uint32 length, file_attributes, ft_high, ft_low; char *newname, fullpath[PATH_MAX]; struct fileinfo *pfinfo; @@ -1007,6 +1008,7 @@ disk_create_notify(RD_NTHANDLE handle, uint32 info_class) static RD_NTSTATUS NotifyInfo(RD_NTHANDLE handle, uint32 info_class, NOTIFY * p) { + UNUSED(info_class); struct fileinfo *pfinfo; struct stat filestat; struct dirent *dp; @@ -1421,6 +1423,9 @@ disk_query_directory(RD_NTHANDLE handle, uint32 info_class, char *pattern, STREA static RD_NTSTATUS disk_device_control(RD_NTHANDLE handle, uint32 request, STREAM in, STREAM out) { + UNUSED(in); + UNUSED(out); + logger(Disk, Debug, "disk_device_control(handle=0x%x, request=0x%x, ...)", handle, request); if (((request >> 16) != 20) || ((request >> 16) != 9)) return RD_STATUS_INVALID_PARAMETER; diff --git a/iso.c b/iso.c index 20702e7..1b5ff1c 100644 --- a/iso.c +++ b/iso.c @@ -204,6 +204,7 @@ RD_BOOL iso_connect(char *server, char *username, char *domain, char *password, RD_BOOL reconnect, uint32 * selected_protocol) { + UNUSED(reconnect); STREAM s; uint8 code; uint32 neg_proto; diff --git a/lspci.c b/lspci.c index d0670dd..ee5e164 100644 --- a/lspci.c +++ b/lspci.c @@ -43,6 +43,7 @@ static void lspci_send(const char *output); static RD_BOOL handle_child_line(const char *line, void *data) { + UNUSED(data); const char *val; char buf[1024]; @@ -108,6 +109,7 @@ handle_child_line(const char *line, void *data) static RD_BOOL lspci_process_line(const char *line, void *data) { + UNUSED(data); char *lspci_command[5] = { "lspci", "-m", "-n", "-v", NULL }; if (!strcmp(line, "LSPCI")) diff --git a/mcs.c b/mcs.c index 53e5af9..8ddf1d0 100644 --- a/mcs.c +++ b/mcs.c @@ -86,6 +86,7 @@ mcs_send_connect_initial(STREAM mcs_data) static RD_BOOL mcs_recv_connect_response(STREAM mcs_data) { + UNUSED(mcs_data); uint8 result; int length; STREAM s; diff --git a/orders.c b/orders.c index 48fa584..ba9cfa1 100644 --- a/orders.c +++ b/orders.c @@ -826,6 +826,7 @@ process_ellipse2(STREAM s, ELLIPSE2_ORDER * os, uint32 present, RD_BOOL delta) static void process_text2(STREAM s, TEXT2_ORDER * os, uint32 present, RD_BOOL delta) { + UNUSED(delta); BRUSH brush; if (present & 0x000001) @@ -1175,6 +1176,7 @@ process_compressed_8x8_brush_data(uint8 * in, uint8 * out, int Bpp) static void process_brushcache(STREAM s, uint16 flags) { + UNUSED(flags); BRUSHDATA brush_data; uint8 cache_idx, colour_code, width, height, size, type; uint8 *comp_brush; diff --git a/parallel.c b/parallel.c index f74bede..59ba7e9 100644 --- a/parallel.c +++ b/parallel.c @@ -78,6 +78,11 @@ static RD_NTSTATUS parallel_create(uint32 device_id, uint32 access, uint32 share_mode, uint32 disposition, uint32 flags, char *filename, RD_NTHANDLE * handle) { + UNUSED(access); + UNUSED(share_mode); + UNUSED(disposition); + UNUSED(flags); + UNUSED(filename); int parallel_fd; parallel_fd = open(g_rdpdr_device[device_id].local_path, O_RDWR); @@ -116,6 +121,7 @@ parallel_close(RD_NTHANDLE handle) static RD_NTSTATUS parallel_read(RD_NTHANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result) { + UNUSED(offset); *result = read(handle, data, length); return RD_STATUS_SUCCESS; } @@ -123,6 +129,7 @@ parallel_read(RD_NTHANDLE handle, uint8 * data, uint32 length, uint32 offset, ui static RD_NTSTATUS parallel_write(RD_NTHANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result) { + UNUSED(offset); int rc = RD_STATUS_SUCCESS; int n = write(handle, data, length); @@ -158,6 +165,9 @@ parallel_write(RD_NTHANDLE handle, uint8 * data, uint32 length, uint32 offset, u static RD_NTSTATUS parallel_device_control(RD_NTHANDLE handle, uint32 request, STREAM in, STREAM out) { + UNUSED(handle); + UNUSED(in); + UNUSED(out); if ((request >> 16) != FILE_DEVICE_PARALLEL) return RD_STATUS_INVALID_PARAMETER; diff --git a/printer.c b/printer.c index 06a1e95..acd38ed 100644 --- a/printer.c +++ b/printer.c @@ -103,6 +103,11 @@ static RD_NTSTATUS printer_create(uint32 device_id, uint32 access, uint32 share_mode, uint32 disposition, uint32 flags, char *filename, RD_NTHANDLE * handle) { + UNUSED(access); + UNUSED(share_mode); + UNUSED(disposition); + UNUSED(flags); + UNUSED(filename); char cmd[256]; PRINTER *pprinter_data; @@ -141,6 +146,7 @@ printer_close(RD_NTHANDLE handle) static RD_NTSTATUS printer_write(RD_NTHANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result) { + UNUSED(offset); PRINTER *pprinter_data; pprinter_data = get_printer_data(handle); diff --git a/rdpsnd.c b/rdpsnd.c index 3ef7361..0d70870 100644 --- a/rdpsnd.c +++ b/rdpsnd.c @@ -110,6 +110,8 @@ rdpsnd_send_waveconfirm(uint16 tick, uint8 packet_index) void rdpsnd_record(const void *data, unsigned int size) { + UNUSED(data); + UNUSED(size); /* TODO: Send audio over RDP */ } @@ -430,6 +432,7 @@ rdpsnd_process(STREAM s) static RD_BOOL rdpsnddbg_line_handler(const char *line, void *data) { + UNUSED(data); logger(Sound, Debug, "rdpsnddbg_line_handler(), \"%s\"", line); return True; } diff --git a/rdpsnd_alsa.c b/rdpsnd_alsa.c index 66e741d..f5a0bcd 100644 --- a/rdpsnd_alsa.c +++ b/rdpsnd_alsa.c @@ -59,6 +59,7 @@ void alsa_record(void); void alsa_add_fds(int *n, fd_set * rfds, fd_set * wfds, struct timeval *tv) { + UNUSED(tv); int err; struct pollfd *f; diff --git a/rdpsnd_dsp.c b/rdpsnd_dsp.c index b815a44..60c6f04 100644 --- a/rdpsnd_dsp.c +++ b/rdpsnd_dsp.c @@ -179,6 +179,7 @@ uint32 rdpsnd_dsp_resample(unsigned char **out, unsigned char *in, unsigned int size, RD_WAVEFORMATEX * format, RD_BOOL stream_be) { + UNUSED(stream_be); #ifdef HAVE_LIBSAMPLERATE SRC_DATA resample_data; float *infloat, *outfloat; diff --git a/rdpsnd_oss.c b/rdpsnd_oss.c index 2170906..98e7e70 100644 --- a/rdpsnd_oss.c +++ b/rdpsnd_oss.c @@ -71,6 +71,7 @@ static RD_BOOL oss_set_format(RD_WAVEFORMATEX * pwfx); static void oss_add_fds(int *n, fd_set * rfds, fd_set * wfds, struct timeval *tv) { + UNUSED(tv); if (dsp_fd == -1) return; diff --git a/scard.c b/scard.c index 40dd8fd..f6c324b 100644 --- a/scard.c +++ b/scard.c @@ -99,24 +99,43 @@ static RD_NTSTATUS scard_create(uint32 device_id, uint32 accessmask, uint32 sharemode, uint32 create_disposition, uint32 flags_and_attributes, char *filename, RD_NTHANDLE * phandle) { - return RD_STATUS_SUCCESS; + UNUSED(device_id); + UNUSED(accessmask); + UNUSED(sharemode); + UNUSED(create_disposition); + UNUSED(flags_and_attributes); + UNUSED(filename); + UNUSED(phandle); + + return RD_STATUS_SUCCESS; } static RD_NTSTATUS scard_close(RD_NTHANDLE handle) { + UNUSED(handle); return RD_STATUS_SUCCESS; } static RD_NTSTATUS scard_read(RD_NTHANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result) { + UNUSED(handle); + UNUSED(data); + UNUSED(length); + UNUSED(offset); + UNUSED(result); return RD_STATUS_SUCCESS; } static RD_NTSTATUS scard_write(RD_NTHANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result) { + UNUSED(handle); + UNUSED(data); + UNUSED(length); + UNUSED(offset); + UNUSED(result); return RD_STATUS_SUCCESS; } @@ -644,6 +663,7 @@ inSkipLinked(STREAM in) static MYPCSC_DWORD SC_returnCode(MYPCSC_DWORD rc, PMEM_HANDLE * handle, STREAM in, STREAM out) { + UNUSED(in); SC_xfreeallmemory(handle); out_uint8s(out, 256); return rc; @@ -658,6 +678,7 @@ SC_returnNoMemoryError(PMEM_HANDLE * handle, STREAM in, STREAM out) static MYPCSC_DWORD TS_SCardEstablishContext(STREAM in, STREAM out) { + UNUSED(in); MYPCSC_DWORD rv; MYPCSC_SCARDCONTEXT myHContext; SERVER_SCARDCONTEXT hContext; @@ -2255,6 +2276,7 @@ TS_SCardControl(STREAM in, STREAM out) static MYPCSC_DWORD TS_SCardAccessStartedEvent(STREAM in, STREAM out) { + UNUSED(in); logger(SmartCard, Debug, "TS_SCardAccessStartedEvent()"); out_uint8s(out, 8); return SCARD_S_SUCCESS; @@ -2264,6 +2286,7 @@ TS_SCardAccessStartedEvent(STREAM in, STREAM out) static RD_NTSTATUS scard_device_control(RD_NTHANDLE handle, uint32 request, STREAM in, STREAM out) { + UNUSED(handle); SERVER_DWORD Result = 0x00000000; unsigned char *psize, *pend, *pStatusCode; SERVER_DWORD addToEnd = 0; @@ -2652,6 +2675,7 @@ SC_handleRequest(PSCThreadData data) static void * queue_handler_function(void *data) { + UNUSED(data); PSCThreadData cur_data = NULL; while (1) { diff --git a/seamless.c b/seamless.c index 33f4cbf..53d3a0c 100644 --- a/seamless.c +++ b/seamless.c @@ -56,6 +56,7 @@ seamless_get_token(char **s) static RD_BOOL seamless_process_line(const char *line, void *data) { + UNUSED(data); char *p, *l; char *tok1, *tok3, *tok4, *tok5, *tok6, *tok7, *tok8; unsigned long id, flags; diff --git a/serial.c b/serial.c index 2cb441e..7ad2f74 100644 --- a/serial.c +++ b/serial.c @@ -552,6 +552,11 @@ static RD_NTSTATUS serial_create(uint32 device_id, uint32 access, uint32 share_mode, uint32 disposition, uint32 flags_and_attributes, char *filename, RD_NTHANDLE * handle) { + UNUSED(access); + UNUSED(share_mode); + UNUSED(disposition); + UNUSED(flags_and_attributes); + UNUSED(filename); RD_NTHANDLE serial_fd; SERIAL_DEVICE *pser_inf; @@ -625,6 +630,7 @@ serial_close(RD_NTHANDLE handle) static RD_NTSTATUS serial_read(RD_NTHANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result) { + UNUSED(offset); long timeout; SERIAL_DEVICE *pser_inf; struct termios *ptermios; @@ -680,6 +686,7 @@ serial_read(RD_NTHANDLE handle, uint8 * data, uint32 length, uint32 offset, uint static RD_NTSTATUS serial_write(RD_NTHANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result) { + UNUSED(offset); SERIAL_DEVICE *pser_inf; /* FIXME: offset is not used ? */ diff --git a/ssl.c b/ssl.c index eb2066f..3139e6f 100644 --- a/ssl.c +++ b/ssl.c @@ -251,6 +251,8 @@ rdssl_cert_to_rkey(RDSSL_CERT * cert, uint32 * key_len) RD_BOOL rdssl_certs_ok(RDSSL_CERT * server_cert, RDSSL_CERT * cacert) { + UNUSED(server_cert); + UNUSED(cacert); /* Currently, we don't use the CA Certificate. FIXME: *) Verify the server certificate (server_cert) with the @@ -308,6 +310,12 @@ RD_BOOL rdssl_sig_ok(uint8 * exponent, uint32 exp_len, uint8 * modulus, uint32 mod_len, uint8 * signature, uint32 sig_len) { + UNUSED(exponent); + UNUSED(exp_len); + UNUSED(modulus); + UNUSED(mod_len); + UNUSED(signature); + UNUSED(sig_len); /* Currently, we don't check the signature FIXME: */