diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2014-05-02 15:30:38 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2014-05-02 15:30:38 -0400 |
commit | e70980747dbe50b5ddc9aee88912e78825cacdd1 (patch) | |
tree | c8cc490c1e24a4aff62d9bb7c15886bd7773a6a8 /config/test_quiet_include.h | |
parent | db1fdc945da471a8dc1f0dd701270858acd0806f (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 'config/test_quiet_include.h')
-rw-r--r-- | config/test_quiet_include.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/test_quiet_include.h b/config/test_quiet_include.h new file mode 100644 index 00000000000..eb0515ede78 --- /dev/null +++ b/config/test_quiet_include.h @@ -0,0 +1,5 @@ +/* + * For the raison d'etre of this file, check the comment above the definition + * of the PGAC_C_INLINE macro in config/c-compiler.m4. + */ +static inline int fun () { return 0; } |