[PATCH] Workaround deprecation warnings introduced in libselinux >= 3.1
Arjun Shankar
arjun.is@lostca.se
Wed Jul 22 15:03:40 GMT 2020
On Tue, Jul 21, 2020 at 08:27:19PM +0000, Joseph Myers wrote:
> On Tue, 21 Jul 2020, Aurelien Jarno wrote:
>
> > /* Initialize the user space access vector cache (AVC) for NSCD along with
> > log/thread/lock callbacks. */
> > +#pragma GCC diagnostic push
> > +#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
>
> Rather than using the pragmas directly, we use the DIAG_*_NEEDS_COMMENT
> macros from libc-diag.h - with a comment explaining exactly why the
> disgnostics are being ignored.
Florian wrote a patch using those that we applied to Fedora rawhide last
night. It was at the file level, though. I'll post something in a bit.
More information about the Libc-alpha
mailing list