diff --git a/patch/0007-Correctly-fix-uninitialized-warning.patch b/patch/0007-Correctly-fix-uninitialized-warning.patch new file mode 100644 index 000000000..90f615aa7 --- /dev/null +++ b/patch/0007-Correctly-fix-uninitialized-warning.patch @@ -0,0 +1,29 @@ +From 125535cc159e547526458c9523826b555b5b59bc Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Kirill=20M=C3=BCller?= +Date: Wed, 22 Jan 2025 11:40:18 +0100 +Subject: [PATCH] Correctly fix uninitialized warning + +--- + src/duckdb/src/main/connection.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/duckdb/src/main/connection.cpp b/src/duckdb/src/main/connection.cpp +index a08874fcb..fe6fd7247 100644 +--- a/src/duckdb/src/main/connection.cpp ++++ b/src/duckdb/src/main/connection.cpp +@@ -28,10 +28,10 @@ Connection::Connection(DatabaseInstance &database) + } + + Connection::Connection(DuckDB &database) : Connection(*database.instance) { +- warning_cb = nullptr; ++ // Initialization of warning_cb happens in the other constructor + } + +-Connection::Connection(Connection &&other) noexcept { ++Connection::Connection(Connection &&other) noexcept : warning_cb(nullptr) { + std::swap(context, other.context); + std::swap(warning_cb, other.warning_cb); + } +-- +2.48.1 +