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

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add __attribute__((format_arg(1))) to the declaration of
Date: 2009-06-25 23:07:16
Message-ID: 20090625230716.8A91F75331E@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2009-06-25 23:11:07 press - pr: Update dateline
Previous Message Heikki Linnakangas 2009-06-25 21:36:01 pgsql: Fix some serious bugs in archive recovery, now that bgwriter is