Supress escalating manual warnings to errors for clang

main
Victor Hahn 9 years ago
parent 2e3e8a9e14
commit df18cf0a41
  1. 9
      ngx_http_auth_ldap_module.c

@ -35,7 +35,16 @@
// used for manual warnings // used for manual warnings
#define XSTR(x) STR(x) #define XSTR(x) STR(x)
#define STR(x) #x #define STR(x) #x
// make sure manual warnings don't get escalated to errors
#ifdef __clang__
#pragma clang diagnostic warning "-W#warnings"
#else
#ifdef __GNUC__
#pragma GCC diagnostic warning "-Wcpp" #pragma GCC diagnostic warning "-Wcpp"
#endif
#endif
// TODO: do the same stuff for MSVC and/or other compilers
#ifndef LDAP_PROTO_EXT #ifndef LDAP_PROTO_EXT
/* Some OpenLDAP headers are accidentally missing ldap_init_fd() etc. */ /* Some OpenLDAP headers are accidentally missing ldap_init_fd() etc. */

Loading…
Cancel
Save