[dm-devel] one warning in current upstream-queue branch

Xose Vazquez Perez xose.vazquez at gmail.com
Fri Dec 18 22:23:21 UTC 2020


With clang-11:

[...]
make -C libmultipath
[...]
clang --std=gnu99  -O2 -g -fstack-protector-strong --param=ssp-buffer-size=4 -Werror -Wall -Wextra -Wformat=2 -Werror=implicit-int -Werror=implicit-function-declaration -Werror=format-securit y 
-Werror=cast-qual  -pipe -DBIN_DIR=\"/sbin\" -DLIB_STRING=\"lib64\" -DRUN_DIR=\"run\" -MMD -MP -fPIC -I../libmpathcmd -I../libmpathpersist -I../libmultipath/nvme -DUSE_SYSTEMD=246 -DLIBDM_ API_FLUSH 
-D_GNU_SOURCE -DLIBDM_API_GET_ERRNO -DLIBDM_API_COOKIE -DLIBUDEV_API_RECVBUF -DLIBDM_API_DEFERRED -DLIBDM_API_HOLD_CONTROL -Wp,-D_FORTIFY_SOURCE=2  -c -o log.o log.c
log.c:142:32: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
         vsnprintf(buff, MAX_MSG_SIZE, fmt, ap);
                                       ^~~
1 error generated.
make[1]: [../Makefile.inc:139: log.o] Error 1 (ignored)
[...]




More information about the dm-devel mailing list