On Wed, Oct 15, 2025 at 08:48:42PM +0200, Theo Buehler wrote:

> > > https://cranky.work/sparc64/2025-10-09/sysutils/wmtempmon.log
> > 
> > This was already reported recently by claudio@ to me, and it could be
> > fixed with following patch (I would include the fix in the next
> > wmtempmon release).
> 
> In addition to silencing gcc's typical -Wuninitialized stuff (which for
> once isn't even wrong), it would be nice not to enable -Werror in releases.

Yeah, Claudio was already ranting about -Werror, but I tried to
ignore it ;-)  Should we go with this for now?


Index: sysutils/wmtempmon/Makefile
===================================================================
RCS file: /cvs/ports/sysutils/wmtempmon/Makefile,v
diff -u -p -u -p -r1.3 Makefile
--- sysutils/wmtempmon/Makefile 26 Sep 2025 16:40:44 -0000      1.3
+++ sysutils/wmtempmon/Makefile 15 Oct 2025 18:37:36 -0000
@@ -1,6 +1,7 @@
 COMMENT=               wm-dockapp; temperature sensor monitor
 
 DISTNAME=              wmtempmon-0.3
+REVISION=              0
 CATEGORIES=            sysutils x11 x11/windowmaker
 SITES=                 https://www.nazgul.ch/dev/
 
? sysutils/wmtempmon/patches

--- Makefile.orig       Wed Oct 15 20:59:41 2025
+++ Makefile    Wed Oct 15 20:59:50 2025
@@ -4,7 +4,7 @@ PROG=           wmtempmon
 SRCS=          wmtempmon.c xutils.c
 MAN=           wmtempmon.1
 
-CFLAGS+=       -Wall -Werror -Wstrict-prototypes -ansi -I/usr/X11R6/include
+CFLAGS+=       -Wall -Wstrict-prototypes -ansi -I/usr/X11R6/include
 LDADD+=                -L/usr/X11R6/lib -lXpm -lX11 -lXext -lm
 PIPE=          -pipe

--- wmtempmon.c.orig    Wed Oct 15 20:30:22 2025
+++ wmtempmon.c Wed Oct 15 20:32:00 2025
@@ -424,6 +424,7 @@ main(int argc, char *argv[])
        XEvent event;
 
        off = 0;
+       tempi = 0;
        temp_device_found = 0;
        opt_temp_device_sensor_num = 0;
        opt_scroll = 1;

Reply via email to