Bugzilla – Bug 1366
[LLVM] error: class 'sqlite3' was previously declared as a struct
Last modified: 2012-03-12 11:46:42 UTC
Compiling with clang++ 2.9 (LLVM): In file included from ../src/stats/model/sqlite-data-output.cc:30: ../src/stats/model/sqlite-data-output.h:30:1: error: class 'sqlite3' was previously declared as a struct [-Werror,-Wmismatched-tags] class sqlite3; ^~~~~ struct In file included from ../src/stats/model/sqlite-data-output.cc:23: /usr/include/sqlite3.h:227:16: note: previous use is here typedef struct sqlite3 sqlite3; ^ 1 error generated. I think just changing "class sqlite3;" to "struct sqlite3;" makes it go away.
Created attachment 1354 [details] Change class to struct patch To solve the "class 'sqlite3' was previously declared as a struct" LLVM error The patch simply changes the term "class" to "struct" The maintainer should evaluate if this is the best solution.
Fixed changeset: 7762:61b2ef996f45