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)
[...]
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel