winapi/c_parser: Badly indenting a closing brace should be a warning, not an error.

Francois Gouget fgouget at free.fr
Thu Jul 9 05:26:30 CDT 2009


---

Some of our tests have extra todo_wine { } that are not very well 
indented but that's no reason to completely abort.


 tools/winapi/c_parser.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/winapi/c_parser.pm b/tools/winapi/c_parser.pm
index 28617f3..a441511 100644
--- a/tools/winapi/c_parser.pm
+++ b/tools/winapi/c_parser.pm
@@ -971,7 +971,7 @@ sub parse_c_file($$$$)
 		$declaration_line = $line;
 		$declaration_column = $column;
 	    } elsif($column == 1 && !$extern_c) {
-		$self->_parse_c_error("", $line, $column, "file", "inner } ends on column 1");
+		$self->_parse_c_warning("", $line, $column, "file", "inner } ends on column 1");
 	    }
 	} elsif(s/^;//) {
 	    $declaration .= $&;
-- 
1.6.3.1




More information about the wine-patches mailing list