pgsql: Suppress volatile-related warning seen in some compilers.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Suppress volatile-related warning seen in some compilers.
Date: 2012-07-21 23:39:17
Message-ID: E1SsjGX-0000xp-Sa@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Suppress volatile-related warning seen in some compilers.

Antique versions of gcc complain about vars that are initialized outside
PG_TRY and then modified within it. Rather than marking the var volatile,
expend one more line of code.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/1f115d98b984c80e635392aed10cc6185d1f8f4b

Modified Files
--------------
src/pl/plpgsql/src/pl_handler.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2012-07-21 23:56:34 pgsql: Use --nosync during make check's initdb call.
Previous Message Tom Lane 2012-07-21 21:45:35 pgsql: Account for SRFs in targetlists in planner rowcount estimates.