imcs icon indicating copy to clipboard operation
imcs copied to clipboard

new clang warning

Open amutu opened this issue 10 years ago • 1 comments

cc -g -Wall -fPIC -DPIC -I. -I. -I/usr/home/jovz/pgsql934/include/server -I/usr/home/jovz/pgsql934/include/internal -c -o imcs.o imcs.c imcs.c:693:51: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ereport(ERROR, (errcode(err_code), errmsg(err_buf))); ^~~~~~~ /usr/home/jovz/pgsql934/include/server/utils/elog.h:133:37: note: expanded from macro 'ereport' ereport_domain(elevel, TEXTDOMAIN, rest) ^ /usr/home/jovz/pgsql934/include/server/utils/elog.h:117:14: note: expanded from macro 'ereport_domain' errfinish rest;
^ imcs.c:1863:82: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ...ereport(ERROR, (errcode(imcs_error_handlers[i].err_code), errmsg(imcs_error_handlers[i].err_msg))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/home/jovz/pgsql934/include/server/utils/elog.h:133:37: note: expanded from macro 'ereport' ereport_domain(elevel, TEXTDOMAIN, rest) ^ /usr/home/jovz/pgsql934/include/server/utils/elog.h:117:14: note: expanded from macro 'ereport_domain' errfinish rest;
^ 2 warnings generated.

amutu avatar Apr 12 '14 08:04 amutu

Sorry, but I have no idea how to eliminate this warning except disabling it using -Wno-format-security compiler option

knizhnik avatar Apr 12 '14 08:04 knizhnik