From 422dcd424ca6b5fbef8d3bd0088e8e9e3757a203 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 8 Aug 2023 19:32:49 -0700 Subject: [PATCH] pinky,who: omit pragma * src/pinky.c, src/who.c: Omit no-longer-needed -Wstringop-overread pragma. --- src/pinky.c | 6 ------ src/who.c | 6 ------ 2 files changed, 12 deletions(-) diff --git a/src/pinky.c b/src/pinky.c index 1429dd0735..59c552bf17 100644 --- a/src/pinky.c +++ b/src/pinky.c @@ -426,12 +426,6 @@ print_heading (void) putchar ('\n'); } -/* Work around , - 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 diff --git a/src/who.c b/src/who.c index 27a7904e1e..074d2d5ad1 100644 --- a/src/who.c +++ b/src/who.c @@ -570,12 +570,6 @@ print_heading (void) _("PID"), _("COMMENT"), _("EXIT")); } -/* Work around , - 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) -- 2.47.2