* multipath-tools clang: two old warnings
@ 2016-08-06 21:50 Xose Vazquez Perez
0 siblings, 0 replies; only message in thread
From: Xose Vazquez Perez @ 2016-08-06 21:50 UTC (permalink / raw)
To: Christophe Varoqui; +Cc: device-mapper development
Hi Christophe,
If you have a spare moment, could you check these ten years old warnings?
Thank you.
=== Added in 31528847 "[multipathd] add "show config" CLI command"
make[1]: Entering directory '/mnt/datos/curre/arrays/multipath-tools/libmultipath'
clang -Wunused -Wstrict-prototypes -O2 -g -pipe -Wformat-security -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fPIC -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\"
-Werror -I../libmpathcmd -DLIBDM_API_FLUSH -D_GNU_SOURCE -DLIBDM_API_COOKIE -DLIBUDEV_API_RECVBUF -DUSE_SYSTEMD=229 -DLIBDM_API_DEFERRED -c -o parser.o parser.c
parser.c:174:12: error: expression which evaluates to zero treated as a null pointer constant of type 'char *' [-Werror,-Wnon-literal-null-conversion]
buff = '\0';
^~~~
=== Added in 70b72117 "[multipath] nice clean up possible now that we store wwids as map uuids"
make[1]: Entering directory '/mnt/datos/curre/arrays/multipath-tools/multipath'
clang -Wunused -Wstrict-prototypes -O2 -g -pipe -Wformat-security -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fPIC -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\"
-Werror -I../libmultipath -I../libmpathcmd -c -o main.o main.c
main.c:215:12: error: address of array 'mpp->wwid' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
if (mpp->wwid && refwwid &&
~~~~~^~~~ ~~
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-06 21:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-06 21:50 multipath-tools clang: two old warnings Xose Vazquez Perez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).