aboutsummaryrefslogtreecommitdiff
path: root/build/file.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-04 16:22:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-04 16:22:54 +0200
commiteea920bd60b085258715c882be2802b9bb18ccc0 (patch)
tree3c2704079b3ea97b6761fcb3953a1c83e61c04d4 /build/file.cxx
parenta975e8e96dd0c39e576b9e44a4c35eeef47ebe76 (diff)
Fix clang warnings
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);