From: David Griffith Date: Fri, 5 May 2023 04:14:12 +0000 (-0700) Subject: Marked unused parameters in the X11 interface as UNUSED to placate -Wextra. X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=8dbf55d6ff36959ebab6ea0ab3c681ca5bd723c3;p=liskon_frotz.git Marked unused parameters in the X11 interface as UNUSED to placate -Wextra. --- diff --git a/src/x11/x_input.c b/src/x11/x_input.c index ea53910..7950754 100644 --- a/src/x11/x_input.c +++ b/src/x11/x_input.c @@ -83,7 +83,7 @@ extern Pixmap bgpm; * to implement word completion (similar to tcsh under Unix). * */ -zchar os_read_line(int max, zchar * buf, int timeout, int width, int continued) +zchar os_read_line(int max, zchar * buf, int timeout, int UNUSED (width), int UNUSED (continued)) { zchar c; int index; @@ -121,7 +121,7 @@ zchar os_read_line(int max, zchar * buf, int timeout, int width, int continued) * return it. Input aborts after timeout/10 seconds. * */ -zchar os_read_key(int timeout, int cursor) +zchar os_read_key(int UNUSED (timeout), int cursor) { XEvent ev; char result[2]; diff --git a/src/x11/x_pic.c b/src/x11/x_pic.c index 9056f1d..83defd7 100644 --- a/src/x11/x_pic.c +++ b/src/x11/x_pic.c @@ -313,7 +313,7 @@ static void readPNGData(png_structp png_ptr, png_bytep data, png_size_t length) } -static int loadpng(uint8_t * data, int length, pict_info_t * graphic) +static int loadpng(uint8_t * data, int UNUSED (length), pict_info_t * graphic) { png_bytep *rowPointers = NULL; png_structp png_ptr = NULL; @@ -483,13 +483,13 @@ static void outputJPEGMessage(j_common_ptr cinfo) /* Memory Data Source */ -static void memJPEGInit(j_decompress_ptr unused) +static void memJPEGInit(j_decompress_ptr UNUSED (unused)) { /* Nothing here */ } -static int memJPEGFillInput(j_decompress_ptr unused) +static int memJPEGFillInput(j_decompress_ptr UNUSED (unused)) { return 0; } @@ -507,7 +507,7 @@ static void memJPEGSkipInput(j_decompress_ptr cinfo, long num_bytes) } -static void memJPEGTerm(j_decompress_ptr unused) +static void memJPEGTerm(j_decompress_ptr UNUSED (unused)) { /* Nothing here */ } @@ -591,7 +591,7 @@ static int loadjpeg(uint8_t * data, int length, pict_info_t * graphic) **************************************************************************** */ -static int loadrect(uint8_t * data, int length, pict_info_t * graphic) +static int loadrect(uint8_t * data, int UNUSED (length), pict_info_t * graphic) { graphic->orig_width = (data[0] << 24) | (data[1] << 16) | (data[2] << 8) | data[3]; diff --git a/src/x11/x_sample.c b/src/x11/x_sample.c index 2136575..fd7518a 100644 --- a/src/x11/x_sample.c +++ b/src/x11/x_sample.c @@ -61,7 +61,7 @@ void os_beep(int number) * Load the sample from the disk. * */ -void os_prepare_sample(int number) +void os_prepare_sample(int UNUSED (number)) { /* Not implemented */ @@ -80,7 +80,7 @@ void os_prepare_sample(int number) * as the sound finishes. * */ -void os_start_sample(int number, int volume, int repeats, zword eos) +void os_start_sample(int UNUSED (number), int UNUSED (volume), int UNUSED (repeats), zword UNUSED (eos)) { /* Not implemented */ @@ -94,7 +94,7 @@ void os_start_sample(int number, int volume, int repeats, zword eos) * Turn off the current sample. * */ -void os_stop_sample(int number) +void os_stop_sample(int UNUSED (number)) { /* Not implemented */ @@ -108,7 +108,7 @@ void os_stop_sample(int number) * Remove the current sample from memory (if any). * */ -void os_finish_with_sample(int number) +void os_finish_with_sample(int UNUSED (number)) { /* Not implemented */ diff --git a/src/x11/x_screen.c b/src/x11/x_screen.c index 78da1b5..f4a7b63 100644 --- a/src/x11/x_screen.c +++ b/src/x11/x_screen.c @@ -76,8 +76,9 @@ void os_scroll_area(int top, int left, int bottom, int right, int units) } /* os_scroll_area */ -bool os_repaint_window(int win, int ypos_old, int ypos_new, int xpos, - int ysize, int xsize) +bool os_repaint_window(int UNUSED (win), int UNUSED (ypos_old), + int UNUSED (ypos_new), int UNUSED (xpos), int UNUSED (ysize), + int UNUSED (xsize)) { return TRUE; }