pgsql: Fix "quiet inline" configure test for newer clang compilers.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix "quiet inline" configure test for newer clang compilers.
Date: 2014-05-01 20:16:48
Message-ID: E1WfxPU-0006h0-Ka@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

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(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2014-05-02 00:22:51 pgsql: Fix yet another corner case in dumping rules/views with USING cl
Previous Message Tom Lane 2014-05-01 19:19:52 pgsql: Fix failure to detoast fields in composite elements of structure

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-05-01 20:17:17 Re: quiet inline configure check misses a step for clang
Previous Message Tom Lane 2014-05-01 19:32:32 Re: Store data in pg_toast for custom type fails (bug?)