From: Paul Eggert Date: Mon, 13 Jun 2022 20:21:18 +0000 (-0700) Subject: Pacify GCC 12.1.1 in default developer build X-Git-Tag: emacs-29.0.90~1910^2~28 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=de6601e62efd959cf74455cfd8030f60448cd713;p=emacs.git Pacify GCC 12.1.1 in default developer build * src/pdumper.c (pdumper_load): Use explicit memset to work around GCC bug . --- diff --git a/src/pdumper.c b/src/pdumper.c index 0efd5cfb0bb..50ae4f85e7e 100644 --- a/src/pdumper.c +++ b/src/pdumper.c @@ -5543,7 +5543,10 @@ pdumper_load (const char *dump_filename, char *argv0) struct dump_header header_buf = { 0 }; struct dump_header *header = &header_buf; - struct dump_memory_map sections[NUMBER_DUMP_SECTIONS] = { 0 }; + struct dump_memory_map sections[NUMBER_DUMP_SECTIONS]; + + /* Use memset instead of "= { 0 }" to work around GCC bug 105961. */ + memset (sections, 0, sizeof sections); const struct timespec start_time = current_timespec (); char *dump_filename_copy;