This is because we're using clang "in GCC mode" by specifying -std=gnu99, but of course it's not the real McCoy, and thus the #pragma makes clang barf.
The solution is to check whether the compiler is clang inside the #idef __GCC__. This may seem counter-intuitive, but actually is logical (and works). The change felt a bit slim for a PR, so I'm including a patch with this issue.
On macOS, using the clang bundled with Xcode, the build fails:
This is because we're using clang "in GCC mode" by specifying
-std=gnu99
, but of course it's not the real McCoy, and thus the#pragma
makes clang barf.The solution is to check whether the compiler is clang inside the
#idef __GCC__
. This may seem counter-intuitive, but actually is logical (and works). The change felt a bit slim for a PR, so I'm including a patch with this issue.Wclobbered.patch.zip