aboutsummaryrefslogtreecommitdiff
path: root/build/file.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/file.cxx')
-rw-r--r--build/file.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/build/file.cxx b/build/file.cxx
index dd9b294..435746c 100644
--- a/build/file.cxx
+++ b/build/file.cxx
@@ -277,7 +277,10 @@ namespace build
if (t.type () != token_type::name || t.name () != var ||
((tt = lex.next ().type ()) != token_type::equal &&
tt != token_type::plus_equal))
- fail << "variable '" << var << "' expected as first line in " << rbf;
+ {
+ error << "variable '" << var << "' expected as first line in " << rbf;
+ throw failed (); // Suppress "used uninitialized" warning.
+ }
parser p;
temp_scope tmp (*global_scope);