]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Don't use broken and unsupported cast expression as statement
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 29 Sep 2020 16:39:45 +0000 (18:39 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 3 Jan 2021 11:43:57 +0000 (12:43 +0100)
libvaladoc/documentation/gtkdocmarkdownparser.vala
tests/objects/generics.vala

index 36b1033e3a64c28edb0ce84481b0f91c47b83f47..c918b77cc31c41e4cf9b7ba58c5d1e0b4a6839ba 100644 (file)
@@ -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");
 
index 8b39db94594e45be96f8eee7d3cc6192bd892fd9..7ea0f7158afe3ee04b0cfb9a8fc16a3fa457809f 100644 (file)
@@ -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;
 }