From: SHIRAKATA Kentaro Date: Sat, 26 Feb 2022 18:50:01 +0000 (+0900) Subject: add explicit cast on somexy() call X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=467777539e3302436cc479859cd1ba5a727c9fcd;p=nethack add explicit cast on somexy() call All other somexy() calls not using a return value have a cast. --- diff --git a/src/sp_lev.c b/src/sp_lev.c index b7dbfd9cc..053bfcede 100644 --- a/src/sp_lev.c +++ b/src/sp_lev.c @@ -1107,7 +1107,7 @@ get_location(xchar *x, xchar *y, int humidity, struct mkroom* croom) do { if (croom) { /* handle irregular areas */ coord tmpc; - somexy(croom, &tmpc); + (void) somexy(croom, &tmpc); *x = tmpc.x; *y = tmpc.y; } else {