]> granicus.if.org Git - nethack/commitdiff
remove a warning with gcc on Windows
authornhmall <nhmall@nethack.org>
Mon, 11 Oct 2021 22:14:09 +0000 (18:14 -0400)
committernhmall <nhmall@nethack.org>
Mon, 11 Oct 2021 22:14:09 +0000 (18:14 -0400)
"braces around scalar initializer"

sys/windows/consoletty.c

index d9031c0b38f3d69b07b51732294f785a4cf591e1..6e075ffe7a83e0c3cf06171203af6ea14fd8d0e9 100644 (file)
@@ -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 */