Add __attribute__((format_arg(1))) to the declaration of err_gettext(),
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 25 Jun 2009 23:07:15 +0000 (23:07 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 25 Jun 2009 23:07:15 +0000 (23:07 +0000)
commita95ff485a6f79d1fb8a6c8d3fbeb8d609ea543db
tree6f4ea10a96dbfd7b6101a85a6506c91b09a469d6
parente5e498f270796a4ae30f64644b188d3a63fb912c
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