diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-01-21 18:29:55 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-01-21 18:29:55 +0100 |
commit | 94f9c14d526abfe9b18045fc638e8f5a3a670210 (patch) | |
tree | 3bdd2cc964314dc48959171a2364d51dbf71f8e2 /src/libexpr/nixexpr.hh | |
parent | a26307b28192e61bc06b5f5ef42f0fb51858d822 (diff) |
Fix some clang warnings
Diffstat (limited to 'src/libexpr/nixexpr.hh')
-rw-r--r-- | src/libexpr/nixexpr.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexpr/nixexpr.hh b/src/libexpr/nixexpr.hh index bc6993477..7586fffb8 100644 --- a/src/libexpr/nixexpr.hh +++ b/src/libexpr/nixexpr.hh @@ -48,7 +48,7 @@ std::ostream & operator << (std::ostream & str, const Pos & pos); struct Env; struct Value; -struct EvalState; +class EvalState; struct StaticEnv; struct Expr; @@ -71,6 +71,7 @@ string showAttrPath(const AttrPath & attrPath); struct Expr { + virtual ~Expr() { }; virtual void show(std::ostream & str); virtual void bindVars(const StaticEnv & env); virtual void eval(EvalState & state, Env & env, Value & v); |