Skip to content
Permalink
Browse files

fix(warnings): set clang compiler pragmas only when clang is detected

* 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 048479d8c0bbd3f9ef63dbcdfac6e9ff02147b3b
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/kerberosgss.c
@@ -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) {
@@ -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.
You can’t perform that action at this time.