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-02 19:31:05
Message-ID: E1WgJAn-0003bQ-Qc@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/e70980747dbe50b5ddc9aee88912e78825cacdd1

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

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2014-05-02 19:31:30 Re: [COMMITTERS] pgsql: Fix "quiet inline" configure test for newer clang compilers.
Previous Message Andres Freund 2014-05-02 15:34:37 Re: pgsql: Fix "quiet inline" configure test for newer clang compilers.