knizhnik / imcs

In-Memory Columnar Store extension for PostgreSQL
Apache License 2.0
203 stars 33 forks source link

new clang warning #33

Open amutu opened 10 years ago

amutu commented 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.

knizhnik commented 10 years ago

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