]> Savannah Git Hosting - gnulib.git/commit
file-has-acl: avoid warning from bleeding-edge GCC
authorJim Meyering <meyering@fb.com>
Sun, 28 May 2023 16:41:08 +0000 (09:41 -0700)
committerJim Meyering <meyering@meta.com>
Sun, 28 May 2023 16:41:08 +0000 (09:41 -0700)
commit2bd4c8dc13de3121d76dad755a255c8e92fd46a7
tree2af25816340eb4b2950d9d6498714b1fe61d65da
parent4f7dce3fc20179ed6c24b7d84b82a99b6f410fef
file-has-acl: avoid warning from bleeding-edge GCC

* lib/file-has-acl.c: Include attribute.h.
(have_xattr): Declare with ATTRIBUTE_PURE,
to avoid new warning from GCC14-to-be.
* modules/file-has-acl (Depends-on): Add attribute.
Spotted while building coreutils with this:
gcc version 14.0.0 20230526 (experimental)
ChangeLog
lib/file-has-acl.c
modules/file-has-acl