pgsql: Fix "quiet inline" configure test for newer clang compilers. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix "quiet inline" configure test for newer clang compilers.
Date
Msg-id E1WfxPU-0006h0-Ka@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: Fix "quiet inline" configure test for newer clang compilers.  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-committers
Fix "quiet inline" configure test for newer clang compilers.

This test used to just define an unused static inline function and check
whether that causes a warning.  But newer clang versions warn about
unused static inline functions when defined inside a .c file, but not
when defined in an included header, which is the case we care about.
Change the test to cope.

Andres Freund

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4c8aa8b5aea1e032f569222d4b6c1019e84622dc

Modified Files
--------------
config/c-compiler.m4        |   15 +++++++++++++--
config/test_quiet_include.h |    5 +++++
configure                   |    2 +-
3 files changed, 19 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix failure to detoast fields in composite elements of structure
Next
From: Tom Lane
Date:
Subject: pgsql: Fix yet another corner case in dumping rules/views with USING cl