]> granicus.if.org Git - nethack/commitdiff
a couple of curses warnings on one compiler
authornhmall <nhmall@nethack.org>
Sat, 30 Jan 2021 04:14:16 +0000 (23:14 -0500)
committernhmall <nhmall@nethack.org>
Sat, 30 Jan 2021 04:14:16 +0000 (23:14 -0500)
win/curses/cursmain.c
win/curses/cursmisc.c

index d201e22723e3b89f1f8577b5c04115b4d0f41ec0..1096a63717e1b70a55291a956abb57d7c3c25083 100644 (file)
@@ -818,6 +818,10 @@ curses_nh_poskey(int *x, int *y, int *mod)
     if (key == KEY_MOUSE) {
         key = curses_get_mouse(x, y, mod);
     }
+#else
+    nhUse(x);
+    nhUse(y);
+    nhUse(mod);
 #endif
 
     return key;
index 8f4b4cd59b3a5db5da63589af27c63b4934dcecc..e1b4f63e2c6bccef89d55c6dd622a19ccc784f59 100644 (file)
@@ -1023,6 +1023,10 @@ curses_get_mouse(int *mousex, int *mousey, int *mod)
             }
         }
     }
+#else
+    nhUse(mousex);
+    nhUse(mousey);
+    nhUse(mod);
 #endif /* NCURSES_MOUSE_VERSION */
 
     return key;