Hi and thanks for your work on fsc service monitoring tool.
I have been using it for a while but haven't tried to rebuild it very
often until today. It may have worked with earlier versions of clang.
PR filed. Here is the error message.
Warning: Object directory not changed from original
/usr/ports/sysutils/fsc/work/fsc/fscd
clang -O2 -pipe -fno-strict-aliasing -std=c99 -std=gnu99
-Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wall
-Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual
-Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align
-Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
-Wold-style-definition -Wno-pointer-sign -c fscd.c
fscd.c:977:13: error: variable 'sendstr' is used uninitialized whenever
'if' condition is false
[-Werror,-Wsometimes-uninitialized]
} else if (strcmp(arglst[0], "status") == 0) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fscd.c:984:16: note: uninitialized use occurs here
send(sock_fd, sendstr, strlen(sendstr), 0);
^~~~~~~
fscd.c:977:9: note: remove the 'if' if its condition is always true
} else if (strcmp(arglst[0], "status") == 0) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fscd.c:934:15: note: initialize the variable 'sendstr' to silence this
warning
char *sendstr;
^
= NULL
1 error generated.
*** [fscd.o] Error code 1
Stop in /usr/ports/sysutils/fsc/work/fsc/fscd.
*** [all] Error code 1
Stop in /usr/ports/sysutils/fsc/work/fsc.
*** [do-build] Error code 1
Stop in /usr/ports/sysutils/fsc.
:w
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"