[vala/0.40] Don't use broken and unsupported cast expression as statement
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] Don't use broken and unsupported cast expression as statement
- Date: Sun, 3 Jan 2021 12:46:51 +0000 (UTC)
commit d0fa8d426953462c6edc9fd243597e7958a2898b
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Sep 29 18:39:45 2020 +0200
Don't use broken and unsupported cast expression as statement
libvaladoc/documentation/gtkdocmarkdownparser.vala | 4 ++--
tests/objects/generics.vala | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/libvaladoc/documentation/gtkdocmarkdownparser.vala
b/libvaladoc/documentation/gtkdocmarkdownparser.vala
index 36b1033e3..c918b77cc 100644
--- a/libvaladoc/documentation/gtkdocmarkdownparser.vala
+++ b/libvaladoc/documentation/gtkdocmarkdownparser.vala
@@ -443,7 +443,7 @@ public class Valadoc.Gtkdoc.MarkdownParser : Object, ResourceLocator {
}
})
.set_reduce (() => {
- (Content.List) pop ();
+ pop ();
})
.set_name ("UnorderedList");
@@ -472,7 +472,7 @@ public class Valadoc.Gtkdoc.MarkdownParser : Object, ResourceLocator {
}
})
.set_reduce (() => {
- (Content.List) pop ();
+ pop ();
})
.set_name ("OrderedList");
diff --git a/tests/objects/generics.vala b/tests/objects/generics.vala
index 8b39db945..7ea0f7158 100644
--- a/tests/objects/generics.vala
+++ b/tests/objects/generics.vala
@@ -3,5 +3,4 @@ void main() {
// functions that are agnostic with regard to the actual type arguments.
GLib.HashTable<int, string> h = (GLib.HashTable) null;
- (void) h;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]