summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-05-02 15:30:35 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-05-02 15:30:35 -0400
commit5788052f3c6b2ac3d2bd761cbb333e50dad8670c (patch)
treeb6265e1497a7470baea8595dcc6c8f8733affd5a /configure
parent8c43980a18c9801d693f39f40a5a26a51785d5fc (diff)
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
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index d9390d114f4..341eaab149c 100755
--- a/configure
+++ b/configure
@@ -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 ()
{