From 46329dddf49af7a60e04d26c550c5919bbda9909 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 8 Jul 2020 21:02:09 +0200 Subject: Remove warning about assigned value is never used reported by cppcheck --- cpufreq/src/cpufreq-selector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpufreq') diff --git a/cpufreq/src/cpufreq-selector.c b/cpufreq/src/cpufreq-selector.c index 4bdac4df..5d9d4915 100644 --- a/cpufreq/src/cpufreq-selector.c +++ b/cpufreq/src/cpufreq-selector.c @@ -44,9 +44,9 @@ G_DEFINE_TYPE (CPUFreqSelector, cpufreq_selector, G_TYPE_OBJECT) static void cpufreq_selector_finalize (GObject *object) { +#ifdef HAVE_POLKIT CPUFreqSelector *selector = CPUFREQ_SELECTOR (object); -#ifdef HAVE_POLKIT g_clear_object (&selector->proxy); g_clear_object (&selector->system_bus); #endif /* HAVE_POLKIT */ -- cgit v1.2.1