public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jeff Law <law@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/soci] update-to-4.1.4: - Work around false positive uninitialized warning exposed by LTO
Date: Sat, 20 Jun 2026 04:39:53 GMT	[thread overview]
Message-ID: <178193039378.1.8121971620420818305.rpms-soci-0425ff4e13ae@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-06-20  4:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178193039378.1.8121971620420818305.rpms-soci-0425ff4e13ae@fedoraproject.org \
    --to=law@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox