File 0002-Add-default-branch-in-switch-case-to-fix-compilation.patch of Package sqlitebrowser
From 777e8a4a70566c753cb78f140608163ddfe3e181 Mon Sep 17 00:00:00 2001
From: Patrick Ziegler <zipat@proton.me>
Date: Wed, 4 Jun 2025 15:38:09 +0200
Subject: [PATCH 2/2] Add default branch in switch-case to fix compilation
warning
See issue #3281.
---
src/sql/ObjectIdentifier.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/sql/ObjectIdentifier.cpp b/src/sql/ObjectIdentifier.cpp
index f7661963..668da521 100644
--- a/src/sql/ObjectIdentifier.cpp
+++ b/src/sql/ObjectIdentifier.cpp
@@ -49,6 +49,8 @@ std::string escapeIdentifier(const std::string& id)
// default branch is removed, even though we have covered all possibilities in the
// switch statement.
return '"' + duplicate_char(id, '"') + '"';
+ default:
+ return id;
}
}
--
2.49.0