Open amutu opened 10 years ago
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.
Sorry, but I have no idea how to eliminate this warning except disabling it using -Wno-format-security compiler option
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.