summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2014-06-11 20:49:35 (GMT)
committerMiloslav Trmač <mitr@redhat.com>2015-06-08 15:37:21 (GMT)
commit4746ed694e087efb122730779ba87a9030ad8946 (patch)
treeb9086e823f29a3ba986dceee6fcaff51cc032f7c
parent37143eb06cb0c4dffca67079dd1c10c5b191b6a7 (diff)
downloadpolkit-4746ed694e087efb122730779ba87a9030ad8946.tar.gz
polkit-4746ed694e087efb122730779ba87a9030ad8946.tar.xz
Simplify forced error domain registration
POLKIT_ERROR is a function call which we need for the side effect. https://bugs.freedesktop.org/show_bug.cgi?id=80767
-rw-r--r--src/polkitbackend/polkitbackendinteractiveauthority.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/polkitbackend/polkitbackendinteractiveauthority.c b/src/polkitbackend/polkitbackendinteractiveauthority.c
index fa9278f..dab2756 100644
--- a/src/polkitbackend/polkitbackendinteractiveauthority.c
+++ b/src/polkitbackend/polkitbackendinteractiveauthority.c
@@ -278,10 +278,9 @@ polkit_backend_interactive_authority_init (PolkitBackendInteractiveAuthority *au
PolkitBackendInteractiveAuthorityPrivate *priv;
GFile *directory;
GError *error;
- static volatile GQuark domain = 0;
/* Force registering error domain */
- domain = POLKIT_ERROR; domain;
+ (void)POLKIT_ERROR;
priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);