From e14d7e198f96039dbc4fb2118739e6ca1fc4cec6 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 8 Aug 2023 19:29:55 -0700 Subject: [PATCH] readutmp: omit pragma MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * lib/readutmp.c: Omit -Sstringop-overread pragma. It’s no longer needed now that extract_trimmed_name no longer calls strnlen. --- ChangeLog | 7 +++++++ lib/readutmp.c | 5 ----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 199c818c18..40274c0a08 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2023-08-08 Paul Eggert + + readutmp: omit pragma + * lib/readutmp.c: Omit -Sstringop-overread pragma. + It’s no longer needed now that extract_trimmed_name + no longer calls strnlen. + 2023-08-08 Bruno Haible readutmp: Use classical implementation for files != /var/run/utmp. diff --git a/lib/readutmp.c b/lib/readutmp.c index 66b25bc7ae..31db4023a1 100644 --- a/lib/readutmp.c +++ b/lib/readutmp.c @@ -136,11 +136,6 @@ # pragma GCC diagnostic ignored "-Wsizeof-pointer-memaccess" #endif -/* Work around . */ -#if 11 <= __GNUC__ -# pragma GCC diagnostic ignored "-Wstringop-overread" -#endif - /* Copy UT->ut_user into storage obtained from malloc. Then remove any trailing spaces from the copy, NUL terminate it, and return the copy. */ -- 2.39.5