]> Savannah Git Hosting - gnulib.git/commitdiff
readutmp: omit pragma
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Aug 2023 02:29:55 +0000 (19:29 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Aug 2023 02:29:55 +0000 (19:29 -0700)
* lib/readutmp.c: Omit -Sstringop-overread pragma.
It’s no longer needed now that extract_trimmed_name
no longer calls strnlen.

ChangeLog
lib/readutmp.c

index 199c818c186c7515408031dd47f40c1e4ca412ee..40274c0a08503e7d1da2126ed176876edbaa33a8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-08-08  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <bruno@clisp.org>
 
        readutmp: Use classical implementation for files != /var/run/utmp.
index 66b25bc7ae2c1cea13ce0392aba6d136010828c2..31db4023a1e25332a81fbffd968ecf5a13cdf7cf 100644 (file)
 # pragma GCC diagnostic ignored "-Wsizeof-pointer-memaccess"
 #endif
 
-/* Work around <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110884>.  */
-#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.  */