# HG changeset patch # User David Anderson # Date 1357509416 28800 # Node ID 9db4cc815ebceea37ca5c046dae5f1677cdaa169 # Parent 3c184218462dc6705624e444232161e95f20f133 Fix gcc and clang builds. diff -r 3c184218462d -r 9db4cc815ebc src/Handles.h --- a/src/Handles.h Sun Jan 06 13:52:21 2013 -0800 +++ b/src/Handles.h Sun Jan 06 13:56:56 2013 -0800 @@ -20,6 +20,7 @@ #define _include_jitcraft_rooting_h_ #include +#include "PoolAllocator.h" namespace ke { diff -r 3c184218462d -r 9db4cc815ebc src/compiler/NameBinding.cpp --- a/src/compiler/NameBinding.cpp Sun Jan 06 13:52:21 2013 -0800 +++ b/src/compiler/NameBinding.cpp Sun Jan 06 13:56:56 2013 -0800 @@ -859,7 +859,7 @@ // Imports automatically go into the importScope. For now, we // error if there are any duplicate symbols entered into the // importScope. - if (Symbol *sym = unit_->importScope()->localLookup(path->name)) { + if (unit_->importScope()->localLookup(path->name)) { cc_.reportError(node->pos(), Message_DuplicateImport, path->name->chars()); return; } diff -r 3c184218462d -r 9db4cc815ebc src/compiler/Parser.cpp --- a/src/compiler/Parser.cpp Sun Jan 06 13:52:21 2013 -0800 +++ b/src/compiler/Parser.cpp Sun Jan 06 13:56:56 2013 -0800 @@ -1255,7 +1255,6 @@ PathComponent *root = new (pool_) PathComponent(NewScopedRoot(pool_, name), NULL); PathComponent *current = root; - TokenKind suffix = TOK_NONE; while (match(TOK_DOT)) { if ((name = expectName()) == NULL) return NULL;