rm / szl

Automatically exported from code.google.com/p/szl
Other
0 stars 0 forks source link

Fix for compiling with clang #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Compiling with clang fails with:
engine/symboltable.cc:47:7: error: qualified reference to 'Proc' is a 
constructor name rather than a type wherever a cons
Proc::Proc* SymbolTable::init_proc_ = NULL;

This patch fixes the issue, tested on OS X 10.9, Xcode 5.1:

diff --git a/src/engine/symboltable.cc b/src/engine/symboltable.cc
index 6d84592..71965f3 100644
--- a/src/engine/symboltable.cc
+++ b/src/engine/symboltable.cc
@@ -44,7 +44,7 @@ namespace sawzall {
 // ------------------------------------------------------------------------------
 // Implementation of SymbolTable

-Proc::Proc* SymbolTable::init_proc_ = NULL;
+Proc* SymbolTable::init_proc_ = NULL;

 List<TableType*>* SymbolTable::table_types_ = NULL;
 TableType* SymbolTable::collection_type_ = NULL;

Original issue reported on code.google.com by fla...@gmail.com on 12 Apr 2014 at 9:44

GoogleCodeExporter commented 9 years ago
This is a duplicate of issue 2. It was fixed by dbh in svn r38.

Original comment by aecolley on 28 Apr 2014 at 8:57