Fix GCC 11 (C++17) build: replaces ordered pointer comparison with equality comparison OBS-URL: https://build.opensuse.org/request/show/903793 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/fluxbox?expand=0&rev=18
15 lines
643 B
Diff
15 lines
643 B
Diff
Fix GCC 11 (C++17) build: replaces ordered pointer comparison with equality comparison.
|
|
Index: fluxbox-1.3.7/util/fluxbox-remote.cc
|
|
===================================================================
|
|
--- fluxbox-1.3.7.orig/util/fluxbox-remote.cc
|
|
+++ fluxbox-1.3.7/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);
|