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/fluxbox] epel8: Fix ordered comparison between pointer and integer 0 for gcc-11
Date: Mon, 09 Nov 2026 11:13:43 GMT	[thread overview]
Message-ID: <179422282397.1.14433012469357995155.rpms-fluxbox-7c4fceeab55c@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/fluxbox
Branch : epel8
Commit : 7c4fceeab55cb581e847c9cf0ed1aac992276bc5
Author : Jeff Law <law@redhat.com>
Date   : 2020-12-04T13:04:49-07:00
Stats  : +18/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/fluxbox/c/7c4fceeab55cb581e847c9cf0ed1aac992276bc5?branch=epel8

Log:
Fix ordered comparison between pointer and integer 0 for gcc-11

---
diff --git a/fluxbox-gcc11.patch b/fluxbox-gcc11.patch
new file mode 100644
index 0000000..420da4b
--- /dev/null
+++ b/fluxbox-gcc11.patch
@@ -0,0 +1,13 @@
+diff --git a/util/fluxbox-remote.cc b/util/fluxbox-remote.cc
+index 59852e6..504015b 100644
+--- util/fluxbox-remote.cc
++++ util/fluxbox-remote.cc
+@@ -73,7 +73,7 @@ int main(int argc, char **argv) {
+     if (strcmp(cmd, "result") == 0) {
+         XTextProperty text_prop;
+         if (XGetTextProperty(disp, root, &text_prop, atom_result) != 0
+-            && text_prop.value > 0
++            && text_prop.value != 0
+             && text_prop.nitems > 0) {
+ 
+             printf("%s", text_prop.value);

diff --git a/fluxbox.spec b/fluxbox.spec
index fd33f9d..1c05302 100644
--- a/fluxbox.spec
+++ b/fluxbox.spec
@@ -1,6 +1,6 @@
 Name:           fluxbox
 Version:        1.3.7
-Release:        15%{?dist}
+Release:        16%{?dist}
 
 Summary:        Window Manager based on Blackbox
 
@@ -12,6 +12,7 @@ Source3:        fluxbox-xsessions.desktop
 Source5:        fluxbox-applications.desktop
 
 Patch0:         fluxbox-startfluxbox-pulseaudio.patch
+Patch1:         %{name}-gcc11.patch
 
 BuildRequires:  gcc
 BuildRequires:  gcc-c++
@@ -126,6 +127,9 @@ install -m 0644 -p 3rd/vim/vim/syntax/fluxmenu.vim %{buildroot}%{_datadir}/vim/v
 %{_datadir}/vim/vimfiles/syntax/flux*.vim
 
 %changelog
+* Fri Dec 04 2020 Jeff Law <law@redhat.com> - 1.3.7-16
+- Fix ordered comparison between pointer and integer 0 for gcc-11
+
 * Mon Nov 23 2020 Ding-Yi Chen <dchen@redhat.com> - 1.3.7-15
 - Remove S macro, as it does not seem to work with Fedora 33
 

                 reply	other threads:[~2026-11-09 11:13 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=179422282397.1.14433012469357995155.rpms-fluxbox-7c4fceeab55c@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