Fix gcc and clang builds.
authorDavid Anderson <dvander@alliedmods.net>
Sun Jan 06 13:56:56 2013 -0800 (2013-01-06)
changeset 2579db4cc815ebc
parent 256 3c184218462d
child 258 241d082d6d89
Fix gcc and clang builds.
src/Handles.h
src/compiler/NameBinding.cpp
src/compiler/Parser.cpp
     1.1 --- a/src/Handles.h	Sun Jan 06 13:52:21 2013 -0800
     1.2 +++ b/src/Handles.h	Sun Jan 06 13:56:56 2013 -0800
     1.3 @@ -20,6 +20,7 @@
     1.4  #define _include_jitcraft_rooting_h_
     1.5  
     1.6  #include <stdlib.h>
     1.7 +#include "PoolAllocator.h"
     1.8  
     1.9  namespace ke {
    1.10  
     2.1 --- a/src/compiler/NameBinding.cpp	Sun Jan 06 13:52:21 2013 -0800
     2.2 +++ b/src/compiler/NameBinding.cpp	Sun Jan 06 13:56:56 2013 -0800
     2.3 @@ -859,7 +859,7 @@
     2.4              // Imports automatically go into the importScope. For now, we
     2.5              // error if there are any duplicate symbols entered into the
     2.6              // importScope.
     2.7 -            if (Symbol *sym = unit_->importScope()->localLookup(path->name)) {
     2.8 +            if (unit_->importScope()->localLookup(path->name)) {
     2.9                  cc_.reportError(node->pos(), Message_DuplicateImport, path->name->chars());
    2.10                  return;
    2.11              }
     3.1 --- a/src/compiler/Parser.cpp	Sun Jan 06 13:52:21 2013 -0800
     3.2 +++ b/src/compiler/Parser.cpp	Sun Jan 06 13:56:56 2013 -0800
     3.3 @@ -1255,7 +1255,6 @@
     3.4      PathComponent *root = new (pool_) PathComponent(NewScopedRoot<String>(pool_, name), NULL);
     3.5      PathComponent *current = root;
     3.6  
     3.7 -    TokenKind suffix = TOK_NONE;
     3.8      while (match(TOK_DOT)) {
     3.9          if ((name = expectName()) == NULL)
    3.10              return NULL;