Really ignore -Wgnu-variable-sized-type-not-at-end

ignore-gnu-variable-sized-type-debug
Jelte Fennema 2020-03-19 10:33:20 +01:00
parent 30ada54f6a
commit 0689cf41e2
1 changed files with 17 additions and 0 deletions

View File

@ -194,6 +194,23 @@ typedef union \
typedef FunctionCallInfoData FunctionCall2InfoData; typedef FunctionCallInfoData FunctionCall2InfoData;
#endif #endif
/*
* We also ignore this warning in ./configure, but that's not always enough.
* The flags that are used during compilation by ./configure are determined by
* the compiler support it detects. This is usually GCC. This warning is only
* present in clang. So it would normally be fine to not use it with GCC. The
* problem is that clang is used to compile the JIT bitcode when postgres is
* compiled with -with-llvm. So in the end both clang and GCC are used to
* compile the project.
*
* So the flag is not provided on the command line, because ./configure notices
* that GCC doesn't support it. But this warning persists when compiling the
* bitcode. So that's why we ignore it here explicitly.
*/
#ifdef __clang__
#pragma clang diagnostic ignored "-Wgnu-variable-sized-type-not-at-end"
#endif /* __clang__ */
/* /*
* Data necessary to perform a single PruneShards(). * Data necessary to perform a single PruneShards().
*/ */