diff --git a/client/cd-fix-profile.c b/client/cd-fix-profile.c index 5fbd3372..3e90e485 100644 --- a/client/cd-fix-profile.c +++ b/client/cd-fix-profile.c @@ -686,7 +686,7 @@ main (int argc, char *argv[]) /* set verbose? */ if (verbose) { - g_setenv ("COLORD_VERBOSE", "1", FALSE); + (void)g_setenv ("COLORD_VERBOSE", "1", FALSE); } else { g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, cd_util_ignore_cb, NULL); diff --git a/client/cd-it8.c b/client/cd-it8.c index a64fbcad..7f141e84 100644 --- a/client/cd-it8.c +++ b/client/cd-it8.c @@ -526,7 +526,7 @@ main (int argc, char *argv[]) /* set verbose? */ if (verbose) { - g_setenv ("COLORD_VERBOSE", "1", FALSE); + (void)g_setenv ("COLORD_VERBOSE", "1", FALSE); } else { g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, cd_util_ignore_cb, NULL); diff --git a/client/cd-util.c b/client/cd-util.c index 10ac2ebb..bb4f94fc 100644 --- a/client/cd-util.c +++ b/client/cd-util.c @@ -2242,7 +2242,7 @@ main (int argc, char *argv[]) /* set verbose? */ if (verbose) { - g_setenv ("COLORD_VERBOSE", "1", FALSE); + (void)g_setenv ("COLORD_VERBOSE", "1", FALSE); } else { g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, cd_util_ignore_cb, NULL); diff --git a/lib/colord/cd-test-private.c b/lib/colord/cd-test-private.c index 231c4aed..65fc780f 100644 --- a/lib/colord/cd-test-private.c +++ b/lib/colord/cd-test-private.c @@ -2072,7 +2072,7 @@ colord_icc_store_func (void) g_assert_cmpint (array->len, ==, 2); g_ptr_array_unref (array); - g_unlink (file2); + (void)g_unlink (file2); /* wait for file notifier */ cd_test_loop_run_with_timeout (5000); @@ -2082,7 +2082,7 @@ colord_icc_store_func (void) g_assert_cmpint (removed, ==, 1); /* remove already-exists.icc */ - g_unlink (file1); + (void)g_unlink (file1); /* wait for file notifier */ cd_test_loop_run_with_timeout (5000); @@ -2352,7 +2352,7 @@ int main (int argc, char **argv) { g_test_init (&argc, &argv, NULL); - g_setenv ("G_MESSAGES_DEBUG", "all", TRUE); + (void)g_setenv ("G_MESSAGES_DEBUG", "all", TRUE); /* only critical and error are fatal */ g_log_set_fatal_mask (NULL, G_LOG_LEVEL_ERROR | G_LOG_LEVEL_CRITICAL); diff --git a/lib/colorhug/ch-device-queue.c b/lib/colorhug/ch-device-queue.c index 5f7a4eb6..6497bd43 100644 --- a/lib/colorhug/ch-device-queue.c +++ b/lib/colorhug/ch-device-queue.c @@ -2824,7 +2824,7 @@ ch_device_queue_set_owner_name (ChDeviceQueue *device_queue, g_return_if_fail (name != NULL); memset(buf, 0, CH_OWNER_LENGTH_MAX); - g_strlcpy(buf, name, CH_OWNER_LENGTH_MAX); + (void)g_strlcpy(buf, name, CH_OWNER_LENGTH_MAX); ch_device_queue_add (device_queue, device, @@ -2890,7 +2890,7 @@ ch_device_queue_set_owner_email (ChDeviceQueue *device_queue, g_return_if_fail (email != NULL); memset (buf, 0, CH_OWNER_LENGTH_MAX); - g_strlcpy (buf, email, CH_OWNER_LENGTH_MAX); + (void)g_strlcpy (buf, email, CH_OWNER_LENGTH_MAX); ch_device_queue_add (device_queue, device, diff --git a/src/cd-self-test.c b/src/cd-self-test.c index 9206210a..fd5f3644 100644 --- a/src/cd-self-test.c +++ b/src/cd-self-test.c @@ -215,7 +215,7 @@ cd_mapping_db_alter_func (void) g_assert (mdb != NULL); /* setup v0.1.0 database for altering */ - g_unlink (db_filename); + (void)g_unlink (db_filename); rc = sqlite3_open (db_filename, &db); g_assert_cmpint (rc, ==, SQLITE_OK); statement = "CREATE TABLE mappings (" @@ -264,7 +264,7 @@ cd_mapping_db_convert_func (void) g_assert (mdb != NULL); /* setup v0.1.8 database for converting */ - g_unlink (db_filename); + (void)g_unlink (db_filename); rc = sqlite3_open (db_filename, &db); g_assert_cmpint (rc, ==, SQLITE_OK); statement = "CREATE TABLE mappings (" @@ -307,7 +307,7 @@ cd_mapping_db_func (void) g_assert (mdb != NULL); /* connect, which should create a v2 table for us */ - g_unlink (db_filename); + (void)g_unlink (db_filename); ret = cd_mapping_db_load (mdb, db_filename, &error); g_assert_no_error (error); g_assert (ret);