aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/service.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1dbe04d..7195c77 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -28,6 +28,8 @@ if(ENABLE_WERROR)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
endif()
+add_definitions("-Wno-sign-compare") # Needed for GTest on Ubuntu
+
##
## GNU standard installation directories
##
diff --git a/src/service.c b/src/service.c
index 4aefb8a..25e909f 100644
--- a/src/service.c
+++ b/src/service.c
@@ -349,7 +349,7 @@ get_current_real_name (IndicatorSessionService * self)
static gboolean
usage_mode_to_action_state(GValue *value,
GVariant *variant,
- gpointer unused)
+ __attribute__((unused)) gpointer unused)
{
const gchar* usage_mode = g_variant_get_string(variant, NULL);
GVariant* ret_var = g_variant_new_boolean(g_strcmp0(usage_mode, "Windowed") == 0 ? TRUE : FALSE);
@@ -359,8 +359,8 @@ usage_mode_to_action_state(GValue *value,
static GVariant*
action_state_to_usage_mode(const GValue *value,
- const GVariantType * unused_expected_type,
- gpointer unused)
+ __attribute__((unused)) const GVariantType * unused_expected_type,
+ __attribute__((unused)) gpointer unused)
{
GVariant* var = g_value_get_variant(value);
GVariant* ret = g_variant_new_string(g_variant_get_boolean(var) == TRUE ? "Windowed" : "Staged");