diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-08-04T17·07+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-08-04T17·07+0000 |
commit | 1854f84e830a5282ae1ad1d0c85ed641af6bcf33 (patch) | |
tree | a28dae68b698b6c2ebcf9d56937b26e108010b9c /src/libexpr/nixexpr.cc | |
parent | dcff8cdb76b37da8978fecee3398d3b541d11ccb (diff) |
* Fix a few warnings.
Diffstat (limited to 'src/libexpr/nixexpr.cc')
-rw-r--r-- | src/libexpr/nixexpr.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/nixexpr.cc b/src/libexpr/nixexpr.cc index 06ca8c928ea3..fac2c0e5c0b7 100644 --- a/src/libexpr/nixexpr.cc +++ b/src/libexpr/nixexpr.cc @@ -130,7 +130,7 @@ Expr substitute(const Substitution & subs, Expr e) /* In case of a function, filter out all variables bound by this function. */ ATermList formals; - ATerm body, def; + ATerm body; if (matchFunction(e, formals, body, pos)) { ATermMap map(ATgetLength(formals)); for (ATermIterator i(formals); i; ++i) { @@ -227,7 +227,7 @@ static void checkVarDefs2(set<Expr> & done, const ATermMap & defs, Expr e) for (ATermIterator i(formals); i; ++i) { ATerm valids, deflt; set<Expr> done2; - matchFormal(*i, name, valids, deflt); + if (!matchFormal(*i, name, valids, deflt)) abort(); checkVarDefs2(done, defs, valids); checkVarDefs2(done2, defs2, deflt); } |