From 249128b3f85cb1544df74c4953a65507c2aea9f6 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 5 Nov 2012 16:00:39 +0200 Subject: Work around Fedora-specific patch to libselinux causing warnings - In recent Fedora, struct selinux_opt value member is changed to an anonymous union of char * and char **. Initialize the members by name to avoid warnings in both (patched and unpatched) cases. --- lib/rpmts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rpmts.c b/lib/rpmts.c index a34edf9a0..b5053713c 100644 --- a/lib/rpmts.c +++ b/lib/rpmts.c @@ -760,7 +760,7 @@ rpmRC rpmtsSELabelInit(rpmts ts, int open_status) } struct selinux_opt opts[] = { - {SELABEL_OPT_PATH, path} + { .type = SELABEL_OPT_PATH, .value = path} }; if (ts->selabelHandle) { -- cgit v1.2.3