]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove no-longer-needed pdumper_load workaround
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 18 Feb 2024 07:38:30 +0000 (23:38 -0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 28 Feb 2024 17:35:46 +0000 (18:35 +0100)
* src/pdumper.c (pdumper_load): Revert my commit "Pacify GCC
12.1.1 in default developer build" dated 2022-06-13 13:21:18 -07,
as GCC bug 105961 is fixed, and this workaround is not needed for
unfixed GCC as these builds should not use --enable-gcc-warnings.

(cherry picked from commit 42c6cf4e5804312defa9d9caac8882500bd38179)

src/pdumper.c

index 5c488d8e90fdb1f502adf8301771a8a0b5d197a9..509fb079db7c1740001d5241f0199c6007d0c759 100644 (file)
@@ -5593,10 +5593,7 @@ 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];
-
-  /* Use memset instead of "= { 0 }" to work around GCC bug 105961.  */
-  memset (sections, 0, sizeof sections);
+  struct dump_memory_map sections[NUMBER_DUMP_SECTIONS] = { 0 };
 
   const struct timespec start_time = current_timespec ();
   char *dump_filename_copy;