From: Paul Eggert Date: Wed, 9 Aug 2023 02:29:55 +0000 (-0700) Subject: readutmp: omit pragma X-Git-Tag: v1.0~948 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=e14d7e198f96039dbc4fb2118739e6ca1fc4cec6;p=gnulib.git readutmp: omit pragma * lib/readutmp.c: Omit -Sstringop-overread pragma. It’s no longer needed now that extract_trimmed_name no longer calls strnlen. --- 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. */