Patch-Source: https://gitlab.gnome.org/GNOME/libgnome-games-support/-/commit/ba8362cfa2f945d97c4ad3cdd78608fa02b99db9 From ba8362cfa2f945d97c4ad3cdd78608fa02b99db9 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Tue, 14 Sep 2021 09:24:35 +0200 Subject: [PATCH] tests: Casting to "void" is not allowed --- tests/test-scores.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-scores.vala b/tests/test-scores.vala index e8e313c..020d373 100644 --- a/tests/test-scores.vala +++ b/tests/test-scores.vala @@ -33,7 +33,7 @@ private void add_score_sync (Context context, int score, Category category) { context.add_score.begin (score, category, null, (object, result) => { try { - (void) context.add_score.end (result); + context.add_score.end (result); } catch (Error e) { @@ -254,7 +254,7 @@ private void test_import_from_history_file () private void test_import_from_nonexistent_history_file () { - (void) new Context.with_importer ( + var context = new Context.with_importer ( "libgnome-games-support-test", "", null, -- GitLab