Fix compiler warning when libselinux is not present

static function selinux_warning() isn't used if HAVE_LIBSELINUX isn't
defined, which results in a warning.