pgsql: Adjust yywrap macro for non-reentrant scanners for MSVC.

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Adjust yywrap macro for non-reentrant scanners for MSVC.
Date: 2011-04-25 13:17:17
Message-ID: E1QELfB-0005QH-10@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Adjust yywrap macro for non-reentrant scanners for MSVC.

The MSVC compiler complains if a macro is called with less arguments
than its definition provides for. flex generates a macro with one
argument for yywrap, but only supplies the argument for reentrant
scanners, so we remove the useless argument in the non-reentrant
case to silence the warning.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/08a0c2dabc3b9d59d72d7a79ed867b8e37d275a7

Modified Files
--------------
src/tools/msvc/pgflex.bat | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2011-04-25 13:48:26 pgsql: Fix SSI-related assertion failure.
Previous Message Michael Meskes 2011-04-25 11:46:33 pgsql: In libecpg do not set an sqlda field that is 'reserved for futur