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; }