From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xose Vazquez Perez Subject: multipath-tools clang: two old warnings Date: Sat, 6 Aug 2016 23:50:59 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Christophe Varoqui Cc: device-mapper development List-Id: dm-devel.ids 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 && ~~~~~^~~~ ~~