Created attachment 6049 check_for_consolekit2 patch static function check_for_consolekit2 is not used if !UP_CHECK_VERSION(0, 99, 0) xfpm-power.c:178:1: error: ‘check_for_consolekit2’ defined but not used [-Werror=unused-function]
Thanks for the patch, pushed to the 4.12 branch: commit 883782b8014564e367ae83ff8718b22e40193f5b Author: Matt Thirtytwo <matt.59491@gmail.com> Date: Sat Mar 7 23:13:05 2015 +0100 function check_for_consolekit2 is not used if !UP_CHECK_VERSION(0, 99, 0) Signed-off-by: Eric Koegel <eric.koegel@gmail.com> http://git.xfce.org/xfce/xfce4-power-manager/commit/?h=xfce-4.12&id=883782b8014564e367ae83ff8718b22e40193f5b