Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 4FB726349B5 for ; Thu, 25 Jun 2009 20:07:19 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 56532-06 for ; Thu, 25 Jun 2009 20:07:18 -0300 (ADT) Received: from cvs.postgresql.org (cvs.postgresql.org [217.196.146.206]) by mail.postgresql.org (Postfix) with ESMTP id 3E4F8632718 for ; Thu, 25 Jun 2009 20:07:18 -0300 (ADT) Received: by cvs.postgresql.org (Postfix, from userid 1007) id 8A91F75331E; Thu, 25 Jun 2009 23:07:16 +0000 (UTC) MIME-Version: 1.0 To: pgsql-committers@postgresql.org Subject: pgsql: Add __attribute__((format_arg(1))) to the declaration of X-Mailer: activitymail 1.24, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain Message-Id: <20090625230716.8A91F75331E@cvs.postgresql.org> Date: Thu, 25 Jun 2009 23:07:16 +0000 (UTC) From: tgl@postgresql.org (Tom Lane) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200906/339 X-Sequence-Number: 37543 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)