From a1f21b702d862cd86989fb053e5075eb359a8c4a Mon Sep 17 00:00:00 2001 From: PatR Date: Fri, 8 Dec 2023 03:30:32 -0800 Subject: [PATCH] warning fix for #if CRASHREPORT Thinko in the reformatting, not triggered during testing because I was using !CRASHREPORT. With it enabled, setting a watchpoint in gdb on something unrelated resulted in nethack going into crashreport_init() and never caming out. (I imagine that it would have eventually but 10 or 15 minutes with nothing noticeable taking place was unbearable, and the program hadn't even really started yet.) --- src/end.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/end.c b/src/end.c index 1c73dfd8c..c42600401 100644 --- a/src/end.c +++ b/src/end.c @@ -413,7 +413,7 @@ submit_web_report(const char *msg, char *why) if (pid == 0) { char err[100]; - (int) execve(CRASHREPORT, (char * const *) xargv, environ); + (void) execve(CRASHREPORT, (char * const *) xargv, environ); Sprintf(err, "Can't start " CRASHREPORT ": %s", strerror(errno)); raw_print(err); } else {