]> granicus.if.org Git - postgresql/commit
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)
commit7a58167ea23c4ce3eb380e2b05fc33a8d08d44d1
treeb00a3c3c9391649bbb12cc42c6efbdd49dea9c41
parent7e48b77b1cebb9a43f9fdd6b17128a0ba36132f9
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