From 6db5befdcbf114197861fe81d5b29abb3266104a Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 29 Nov 2021 15:22:35 +0100 Subject: extra/slim: fix for FS#72873 (compilation with newer gcc) --- extra/slim/slim-1.3.6-wingc-dead-code.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 extra/slim/slim-1.3.6-wingc-dead-code.patch (limited to 'extra/slim/slim-1.3.6-wingc-dead-code.patch') diff --git a/extra/slim/slim-1.3.6-wingc-dead-code.patch b/extra/slim/slim-1.3.6-wingc-dead-code.patch new file mode 100644 index 00000000..37b7f578 --- /dev/null +++ b/extra/slim/slim-1.3.6-wingc-dead-code.patch @@ -0,0 +1,15 @@ +diff -rauN slim-1.3.6/panel.cpp slim-1.3.6-wingc-dead-code-patch/panel.cpp +--- slim-1.3.6/panel.cpp 2013-10-02 00:38:05.000000000 +0200 ++++ slim-1.3.6-wingc-dead-code-patch/panel.cpp 2021-11-29 14:59:42.948388074 +0100 +@@ -48,11 +48,6 @@ + gcm = GCGraphicsExposures; + gcv.graphics_exposures = False; + WinGC = XCreateGC(Dpy, Win, gcm, &gcv); +- if (WinGC < 0) { +- cerr << APPNAME +- << ": failed to create pixmap\n."; +- exit(ERR_EXIT); +- } + } + + font = XftFontOpenName(Dpy, Scr, cfg->getOption("input_font").c_str()); -- cgit v1.2.3-70-g09d2