Skip to content

Commit

Permalink
Merge pull request #139 from victorhahncastell/master
Browse files Browse the repository at this point in the history
Supress escalating manual warnings to errors for clang
  • Loading branch information
kvspb authored Sep 22, 2016
2 parents 39e59fa + ac3e805 commit 8f7c1f3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ngx_http_auth_ldap_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,16 @@
// used for manual warnings
#define XSTR(x) STR(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"
#endif
#endif
// TODO: do the same stuff for MSVC and/or other compilers


#ifndef LDAP_PROTO_EXT
/* Some OpenLDAP headers are accidentally missing ldap_init_fd() etc. */
Expand Down

0 comments on commit 8f7c1f3

Please sign in to comment.