From: nhmall Date: Mon, 11 Oct 2021 22:14:09 +0000 (-0400) Subject: remove a warning with gcc on Windows X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e78c296f3fd0dc3269424630810417e66a4994e;p=nethack remove a warning with gcc on Windows "braces around scalar initializer" --- diff --git a/sys/windows/consoletty.c b/sys/windows/consoletty.c index d9031c0b3..6e075ffe7 100644 --- a/sys/windows/consoletty.c +++ b/sys/windows/consoletty.c @@ -248,8 +248,8 @@ struct console_t { 0, /* height */ FALSE, /* has_unicode */ 0, /* buffer_size */ - { 0 }, /* front_buffer */ - { 0 }, /* back_buffer */ + NULL, /* front_buffer */ + NULL, /* back_buffer */ { 0 }, /* cpMap */ FALSE, /* font_changed */ { 0 }, /* orig_font_info */