From c44223a8d5cb348f8b205c2e9cbfebbdcf4bcd28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Wed, 11 Jun 2014 22:49:35 +0200 Subject: [PATCH 3/5] Explicitly cast a no-effect reference to void MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Working around a warning necessary only for a warning workaround… (Or just use (void)POLKIT_ERROR, taking advantage of the knowledge that it is a function call?) https://bugs.freedesktop.org/show_bug.cgi?id=80767 --- src/polkitbackend/polkitbackendinteractiveauthority.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/polkitbackend/polkitbackendinteractiveauthority.c b/src/polkitbackend/polkitbackendinteractiveauthority.c index 0445148..7275c30 100644 --- a/src/polkitbackend/polkitbackendinteractiveauthority.c +++ b/src/polkitbackend/polkitbackendinteractiveauthority.c @@ -281,7 +281,7 @@ polkit_backend_interactive_authority_init (PolkitBackendInteractiveAuthority *au static volatile GQuark domain = 0; /* Force registering error domain */ - domain = POLKIT_ERROR; domain; + domain = POLKIT_ERROR; (void)domain; priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority); -- 1.8.3.1