Allow compiling on GCC < 5/CentOS 6 See #138.
As per https://github.com/kvspb/nginx-auth-ldap/issues/138#issuecomment-317625746 the issue is that: * nginx compiles with `-Werror` (treating warnings as errors) * CentOS 6 has OpenSSL 1.0.1e and so the LDAP module has a warning on compile * CentOS 6 has GCC 4.4. GCC treats `#pragma GCC diagnostic warning "-Wcpp"` as itself an error and thus skips the statement, leading the the `#warning` still being an error. This adds version-checking to the warning options and the warning itself. This means that no warning is issued at compile time on this type of platform, but warnings are still emitted when starting Nginx without certificate verification, so it isn't as though the issue has been hidden.main
parent
22d1e849a3
commit
766fe023bf
Loading…
Reference in new issue