Marked unused parameters in the X11 interface as UNUSED to placate -Wextra.
authorDavid Griffith <dave@661.org>
Fri, 5 May 2023 04:14:12 +0000 (21:14 -0700)
committerDavid Griffith <dave@661.org>
Fri, 5 May 2023 04:14:12 +0000 (21:14 -0700)
src/x11/x_input.c
src/x11/x_pic.c
src/x11/x_sample.c
src/x11/x_screen.c

index ea53910fca1b1447f16b1b2426da51e93a75d4c4..79507541c0a2a1b2222debabbaa2ba8d6350441c 100644 (file)
@@ -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];
index 9056f1d9333faae83b3368d8c704e0c0732afd2e..83defd70e45e8daf6cb01de1bc5e8d2da23fb989 100644 (file)
@@ -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];
index 213657550edb6e0f521db5c14073219fe487ef60..fd7518ace54c87dfa7c5a566445687f6208d2fc1 100644 (file)
@@ -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 */
index 78da1b5cc63271d929d154f54e775ac61ef39577..f4a7b63a6a58bdd40241ee38e69d37606e47375b 100644 (file)
@@ -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;
 }