Skip to content

New Clang warning: "'extern' variable has an initializer" #94

@snej

Description

@snej

The latest change to Database.cpp triggers a compiler warning from Clang:

/Couchbase/SQForest/vendor/SQLiteCpp/src/Database.cpp:35:21: warning: 'extern' variable has an initializer [-Wextern-initializer]
extern const char*  VERSION        = SQLITE_VERSION;

The extern qualifiers on this and the other declarations here should be removed, since these are the actual definitions of the constants, not just references to them.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions