[PATCH] Workaround deprecation warnings introduced in libselinux >= 3.1

Joseph Myers joseph@codesourcery.com
Tue Jul 21 20:27:19 GMT 2020


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.

-- 
Joseph S. Myers
joseph@codesourcery.com


More information about the Libc-alpha mailing list