Обсуждение: pgsql: Add __attribute__((format_arg(1))) to the declaration of

Поиск
Список
Период
Сортировка

pgsql: Add __attribute__((format_arg(1))) to the declaration of

От
tgl@postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/backend/utils/error:
        elog.c (r1.215 -> r1.216)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/error/elog.c?r1=1.215&r2=1.216)