@@ -317,7 +317,10 @@ void matchpathcon_filespec_destroy(void)
static void matchpathcon_thread_destructor(void __attribute__((unused)) *ptr)
{
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
matchpathcon_fini();
+#pragma GCC diagnostic pop
}
void __attribute__((destructor)) matchpathcon_lib_destructor(void);
@@ -451,8 +454,10 @@ int matchpathcon(const char *path, mode_t mode, char ** con)
int matchpathcon_index(const char *name, mode_t mode, char ** con)
{
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
int i = matchpathcon(name, mode, con);
-
+#pragma GCC diagnostic pop
if (i < 0)
return -1;