public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/soci] update-to-4.1.4: - Work around false positive uninitialized warning exposed by LTO
@ 2026-06-20 4:39 Jeff Law
0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2026-06-20 4:39 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/soci
Branch : update-to-4.1.4
Commit : 0425ff4e13ae5f0a535c61a62bfa4baebca04ec5
Author : Jeff Law <law@redhat.com>
Date : 2020-07-19T11:54:32-06:00
Stats : +23/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/soci/c/0425ff4e13ae5f0a535c61a62bfa4baebca04ec5?branch=update-to-4.1.4
Log:
- Work around false positive uninitialized warning exposed by LTO
---
diff --git a/soci-uninit.patch b/soci-uninit.patch
new file mode 100644
index 0000000..17f3cd8
--- /dev/null
+++ b/soci-uninit.patch
@@ -0,0 +1,16 @@
+diff -Nrup a/src/backends/mysql/session.cpp b/src/backends/mysql/session.cpp
+--- a/src/backends/mysql/session.cpp 2019-11-09 12:08:01.000000000 -0700
++++ b/src/backends/mysql/session.cpp 2019-12-19 22:08:48.011411151 -0700
+@@ -180,10 +180,12 @@ void parse_connect_string(const string &
+ *password_p = false;
+ *db_p = false;
+ *unix_socket_p = false;
++ *port = 0;
+ *port_p = false;
+ *ssl_ca_p = false;
+ *ssl_cert_p = false;
+ *ssl_key_p = false;
++ *local_infile = 0;
+ *local_infile_p = false;
+ *charset_p = false;
+ *connect_timeout_p = false;
diff --git a/soci.spec b/soci.spec
index 9a39ffd..4c9d968 100644
--- a/soci.spec
+++ b/soci.spec
@@ -23,7 +23,7 @@
Name: soci
Version: 4.0.1.alpha2
%global ups_ver 4.0.1-alpha2
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: The database access library for C++ programmers
License: Boost
URL: https://github.com/SOCI/%{name}
@@ -31,6 +31,8 @@ Source0: %{url}/archive/%{ups_version}.tar.gz#/%{name}-%{version}.tar.gz
# Upstream issue: https://github.com/SOCI/soci/pull/815
#Patch0: soci-werror.patch
+# Works around a false positive -Wuninitialized error exposed by LTO
+Patch1: soci-uninit.patch
BuildRequires: dos2unix
BuildRequires: gcc gcc-c++
@@ -182,6 +184,7 @@ library. The documentation is the same as at the %{name} web page.
%prep
%setup -q -n %{name}-%{ups_ver}
#%%patch -p1
+%patch1 -p1
# Rename change-log and license file, so that they comply with
# packaging standard
@@ -323,6 +326,9 @@ rm -f %{buildroot}%{_libdir}/*.a
%doc AUTHORS ChangeLog COPYING NEWS README docs
%changelog
+* Sun Jul 19 2020 Jeff Law <law@redhat.com> 4.0.1.alpha2-3
+- Work around false positive uninitialized warning exposed by LTO
+
* Thu Jun 04 2020 Denis Arnaud <denis.arnaud_fedora@m4x.org> 4.0.1.alpha2-2
- C++-11 flag is now set to on by default
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-20 4:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-20 4:39 [rpms/soci] update-to-4.1.4: - Work around false positive uninitialized warning exposed by LTO Jeff Law
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox