Skip to content

Commit

Permalink
Fix #94 warning: "'extern' variable has an initializer"
Browse files Browse the repository at this point in the history
  • Loading branch information
SRombauts committed Jul 26, 2016
1 parent 53c727c commit 2b384d1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions src/Column.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
namespace SQLite
{

extern const int INTEGER = SQLITE_INTEGER;
extern const int FLOAT = SQLITE_FLOAT;
extern const int TEXT = SQLITE_TEXT;
extern const int BLOB = SQLITE_BLOB;
extern const int Null = SQLITE_NULL;
const int INTEGER = SQLITE_INTEGER;
const int FLOAT = SQLITE_FLOAT;
const int TEXT = SQLITE_TEXT;
const int BLOB = SQLITE_BLOB;
const int Null = SQLITE_NULL;


// Encapsulation of a Column in a row of the result pointed by the prepared Statement.
Expand Down
16 changes: 8 additions & 8 deletions src/Database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@
namespace SQLite
{

extern const int OPEN_READONLY = SQLITE_OPEN_READONLY;
extern const int OPEN_READWRITE = SQLITE_OPEN_READWRITE;
extern const int OPEN_CREATE = SQLITE_OPEN_CREATE;
extern const int OPEN_URI = SQLITE_OPEN_URI;
extern const int OPEN_MEMORY = SQLITE_OPEN_MEMORY;
const int OPEN_READONLY = SQLITE_OPEN_READONLY;
const int OPEN_READWRITE = SQLITE_OPEN_READWRITE;
const int OPEN_CREATE = SQLITE_OPEN_CREATE;
const int OPEN_URI = SQLITE_OPEN_URI;
const int OPEN_MEMORY = SQLITE_OPEN_MEMORY;

extern const int OK = SQLITE_OK;
const int OK = SQLITE_OK;

extern const char* VERSION = SQLITE_VERSION;
extern const int VERSION_NUMBER = SQLITE_VERSION_NUMBER;
const char* VERSION = SQLITE_VERSION;
const int VERSION_NUMBER = SQLITE_VERSION_NUMBER;

// Return SQLite version string using runtime call to the compiled library
const char* getLibVersion() noexcept // nothrow
Expand Down

0 comments on commit 2b384d1

Please sign in to comment.