]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Add [FormatArg] attribute to Parser.get_error
authorJürg Billeter <j@bitron.ch>
Tue, 1 Nov 2016 17:01:20 +0000 (18:01 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 3 Nov 2016 19:47:31 +0000 (20:47 +0100)
vala/valagenieparser.vala
vala/valaparser.vala

index b1a1693915456397f09f765120acb0eb93861f6c..25097a521197c830efdd1a646898f19f953bafc6 100644 (file)
@@ -148,7 +148,7 @@ public class Vala.Genie.Parser : CodeVisitor {
                return false;
        }
 
-       string get_error (string msg) {
+       string get_error ([FormatArg] string msg) {
                var begin = get_location ();
                next ();
                Report.error (get_src (begin), "syntax error, " + msg);
index 48127eba0b73bc5985844e97accfcb96dc26c2f7..11e8badaa0ebbee77326d1dfe26962e84a642eee 100644 (file)
@@ -114,7 +114,7 @@ public class Vala.Parser : CodeVisitor {
                return false;
        }
 
-       string get_error (string msg) {
+       string get_error ([FormatArg] string msg) {
                var begin = get_location ();
                next ();
                Report.error (get_src (begin), "syntax error, " + msg);