[vala] Fix C warnings in parser



commit 61056737d269a31281943846d43610a208a2a789
Author: Jürg Billeter <j bitron ch>
Date:   Mon Sep 14 18:44:06 2009 +0200

    Fix C warnings in parser

 vala/valagenieparser.vala |    4 ++--
 vala/valaparser.vala      |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/vala/valagenieparser.vala b/vala/valagenieparser.vala
index f61f65a..32edf6b 100644
--- a/vala/valagenieparser.vala
+++ b/vala/valagenieparser.vala
@@ -305,9 +305,9 @@ public class Vala.Genie.Parser : CodeVisitor {
 				return;
 			}
 			break;
+		default:
+			throw new ParseError.SYNTAX (get_error ("expected identifier"));
 		}	
-
-		throw new ParseError.SYNTAX (get_error ("expected identifier"));
 	}
 
 	string parse_identifier () throws ParseError {
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index 58fcff7..0ee18a3 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -249,9 +249,9 @@ public class Vala.Parser : CodeVisitor {
 				return;
 			}
 			break;
+		default:
+			throw new ParseError.SYNTAX (get_error ("expected identifier"));
 		}
-
-		throw new ParseError.SYNTAX (get_error ("expected identifier"));
 	}
 
 	string parse_identifier () throws ParseError {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]