Skip to content

Commit 048479d

Browse files
Martiimbroadst
authored andcommitted
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
1 parent dc2c3ef commit 048479d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/kerberosgss.c

+4
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@
3333
#include <unistd.h>
3434
#include <krb5.h>
3535

36+
#if defined(__clang__)
3637
#pragma clang diagnostic push
3738
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
39+
#endif
3840

3941
void die1(const char *message) {
4042
if(errno) {
@@ -1233,4 +1235,6 @@ static gss_client_response *other_error(const char *fmt, ...)
12331235
}
12341236

12351237

1238+
#if defined(__clang__)
12361239
#pragma clang diagnostic pop
1240+
#endif

0 commit comments

Comments
 (0)