commit bb31c45832cb2c5356224f491f4337cfdd110ace
parent fd6a3b5b9f49dfae00e304317b1c83ef34f9a4e1
Author: cfillion <cfillion@users.noreply.github.com>
Date: Wed, 6 Sep 2017 00:12:08 -0400
linux: fix build with GCC 7 and -Wimplicit-fallthrough enabled
Diffstat:
3 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/database.cpp b/src/database.cpp
@@ -174,6 +174,7 @@ void Statement::exec(const ExecCallback &callback)
case SQLITE_ROW:
if(callback())
break;
+ // FALLTHROUGH
case SQLITE_DONE:
sqlite3_clear_bindings(m_stmt);
sqlite3_reset(m_stmt);
diff --git a/src/manager.cpp b/src/manager.cpp
@@ -195,6 +195,7 @@ void Manager::onCommand(const int id, int)
refresh();
break;
}
+ // FALLTHRU
case IDCANCEL:
close();
break;
@@ -784,7 +785,7 @@ void NetworkConfig::onCommand(const int id, int)
switch(id) {
case IDOK:
apply();
- // then close
+ // FALLTHROUGH
case IDCANCEL:
close(id);
break;
diff --git a/src/registry.cpp b/src/registry.cpp
@@ -126,10 +126,13 @@ void Registry::migrate()
switch(current.minor) {
case 1:
m_db.exec("ALTER TABLE entries ADD COLUMN pinned INTEGER NOT NULL DEFAULT 0;");
+ // FALLTHROUGH
case 2:
m_db.exec("ALTER TABLE files ADD COLUMN type INTEGER NOT NULL DEFAULT 0;");
+ // FALLTHROUGH
case 3:
m_db.exec("ALTER TABLE entries ADD COLUMN desc TEXT NOT NULL DEFAULT '';");
+ // FALLTHROUGH
case 4:
convertImplicitSections();
}