From d245c356b9f07f4377fd0a6b58b4b0d1c4c29013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 8 Dec 2024 06:34:40 +0100 Subject: [PATCH] fix: Fix uninitialized warning --- patch/0006-Fix-uninitialized-warning.patch | 24 ++++++++++++++++++++++ src/duckdb/src/main/connection.cpp | 1 + 2 files changed, 25 insertions(+) create mode 100644 patch/0006-Fix-uninitialized-warning.patch diff --git a/patch/0006-Fix-uninitialized-warning.patch b/patch/0006-Fix-uninitialized-warning.patch new file mode 100644 index 000000000..1cc82efe1 --- /dev/null +++ b/patch/0006-Fix-uninitialized-warning.patch @@ -0,0 +1,24 @@ +From 8b297dc5efaf19bde1520f417e323aba0a3fbf92 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Kirill=20M=C3=BCller?= +Date: Sun, 8 Dec 2024 06:34:40 +0100 +Subject: [PATCH] fix: Fix uninitialized warning + +--- + src/duckdb/src/main/connection.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/duckdb/src/main/connection.cpp b/src/duckdb/src/main/connection.cpp +index 4dd7ad11..a08874fc 100644 +--- a/src/duckdb/src/main/connection.cpp ++++ b/src/duckdb/src/main/connection.cpp +@@ -28,6 +28,7 @@ Connection::Connection(DatabaseInstance &database) + } + + Connection::Connection(DuckDB &database) : Connection(*database.instance) { ++ warning_cb = nullptr; + } + + Connection::Connection(Connection &&other) noexcept { +-- +2.43.0 + diff --git a/src/duckdb/src/main/connection.cpp b/src/duckdb/src/main/connection.cpp index 4dd7ad11e..a08874fcb 100644 --- a/src/duckdb/src/main/connection.cpp +++ b/src/duckdb/src/main/connection.cpp @@ -28,6 +28,7 @@ Connection::Connection(DatabaseInstance &database) } Connection::Connection(DuckDB &database) : Connection(*database.instance) { + warning_cb = nullptr; } Connection::Connection(Connection &&other) noexcept {