pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Suppress "unused variable" warnings with older versions of flex.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Suppress "unused variable" warnings with older versions of flex.
@ 2017-02-19 18:04  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2017-02-19 18:04 UTC (permalink / raw)
  To: pgsql-committers

Suppress "unused variable" warnings with older versions of flex.

Versions of flex before 2.5.36 might generate code that results in an
"unused variable" warning, when using %option reentrant.  Historically
we've worked around that by specifying -Wno-error, but that's an
unsatisfying solution.  The official "fix" for this was just to insert a
dummy reference to the variable, so write a small perl script that edits
the generated C code similarly.

The MSVC side of this is untested, but the buildfarm should soon reveal
if I broke that.

Discussion: https://postgr.es/m/25456.1487437842@sss.pgh.pa.us

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/65d508fd4decee4d5a54c1e7b93acd25d5e80556

Modified Files
--------------
src/Makefile.global.in        |  1 +
src/backend/parser/Makefile   |  7 +----
src/bin/psql/Makefile         |  6 +---
src/fe_utils/Makefile         |  6 +---
src/tools/fix-flex-warning.pl | 65 +++++++++++++++++++++++++++++++++++++++++++
src/tools/msvc/pgflex.pl      | 20 ++++++++-----
6 files changed, 82 insertions(+), 23 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Suppress unused-variable warnings when building with ICU 4.2.
@ 2017-08-05 15:48  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2017-08-05 15:48 UTC (permalink / raw)
  To: pgsql-committers

Suppress unused-variable warnings when building with ICU 4.2.

Tidy-up for commit eccead9ed.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e9f4ac1389d9fe6b996937e5d308f5ec462cf69a

Modified Files
--------------
src/backend/commands/collationcmds.c | 33 ++++++++++++++++++++-------------
1 file changed, 20 insertions(+), 13 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2017-08-05 15:48 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-02-19 18:04 pgsql: Suppress "unused variable" warnings with older versions of flex. Tom Lane <tgl@sss.pgh.pa.us>
2017-08-05 15:48 pgsql: Suppress unused-variable warnings when building with ICU 4.2. Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox