Skip to content

Commit

Permalink
fix(warnings): set clang compiler pragmas only when clang is detected
Browse files Browse the repository at this point in the history
* Should eliminate a few warnings after installing the architecture dependent development lib of libkrb5
  • Loading branch information
Martii authored and mbroadst committed Jun 17, 2018
1 parent dc2c3ef commit 048479d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/kerberosgss.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@
#include <unistd.h>
#include <krb5.h>

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif

void die1(const char *message) {
if(errno) {
Expand Down Expand Up @@ -1233,4 +1235,6 @@ static gss_client_response *other_error(const char *fmt, ...)
}


#if defined(__clang__)
#pragma clang diagnostic pop
#endif

0 comments on commit 048479d

Please sign in to comment.