1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-27 23:21:58 +03:00

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
This commit is contained in:
Tom Lane
2014-05-02 15:30:35 -04:00
parent 8c43980a18
commit 5788052f3c
3 changed files with 19 additions and 3 deletions

2
configure vendored
View File

@ -15104,7 +15104,7 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
static inline int fun () {return 0;}
#include "$srcdir/config/test_quiet_include.h"
int
main ()
{