Add __attribute__((format_arg(1))) to the declaration of err_gettext(),
commitee5e6adffc6a53ea275dc419bacaf2fc7e6353dd
authortgl <tgl>
Thu, 25 Jun 2009 23:07:15 +0000 (25 23:07 +0000)
committertgl <tgl>
Thu, 25 Jun 2009 23:07:15 +0000 (25 23:07 +0000)
treec0112a9f8ba555943d3ff826239bddb21dfdd3be
parent4d5c56ea1807bf4d5c5c47fc52c09bcf51fafacb
Add __attribute__((format_arg(1))) to the declaration of err_gettext(),
to restore gcc's ability to crosscheck format arguments within elog.c.
Noted in a test compilation with -Wformat-nonliteral enabled.
src/backend/utils/error/elog.c