]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
pinky,who: omit pragma
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Aug 2023 02:32:49 +0000 (19:32 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Aug 2023 03:05:33 +0000 (20:05 -0700)
* src/pinky.c, src/who.c:
Omit no-longer-needed -Wstringop-overread pragma.

src/pinky.c
src/who.c

index 1429dd07356995c8255ac02ccc8f3783a5d89ece..59c552bf178e7ecfb3c09257dd235a84d49b20d3 100644 (file)
@@ -426,12 +426,6 @@ print_heading (void)
   putchar ('\n');
 }
 
-/* Work around <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109614>,
-   triggered by STREQ_LEN with a negative length.  */
-#if 11 <= __GNUC__
-# pragma GCC diagnostic ignored "-Wstringop-overread"
-#endif
-
 /* Display UTMP_BUF, which should have N entries. */
 
 static void
index 27a7904e1eb799ae8deaed5c8f16adc66363dd0c..074d2d5ad17ebf93234ff4653da8ac3c95247e66 100644 (file)
--- a/src/who.c
+++ b/src/who.c
@@ -570,12 +570,6 @@ print_heading (void)
               _("PID"), _("COMMENT"), _("EXIT"));
 }
 
-/* Work around <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109614>,
-   triggered by STREQ_LEN with a negative length.  */
-#if 11 <= __GNUC__
-# pragma GCC diagnostic ignored "-Wstringop-overread"
-#endif
-
 /* Display UTMP_BUF, which should have N entries. */
 static void
 scan_entries (idx_t n, const STRUCT_UTMP *utmp_buf)