Skip to content

Commit 29fbf6a

Browse files
stwhite91evan-charmworks
authored andcommitted
Cleanup warning from clang about unknown diagnostic
1 parent 6f7f105 commit 29fbf6a

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

src/QuickThreads/md/setjmp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct helpdesc { qt_helper_t *hfn; qt_t *jb; void *oldptr; void *newptr; };
2929
# endif
3030
#endif
3131

32-
#ifdef __GNUC__
32+
#if __GNUC__ && !__clang__
3333
#pragma GCC diagnostic push
3434
#pragma GCC diagnostic ignored "-Wstringop-overflow"
3535
#endif
@@ -89,6 +89,6 @@ void *qt_abort(qt_helper_t *hfn, void *oldptr, void *newptr, qt_t *sp)
8989
longjmp(*(jmp_buf *)&sp, (int)(intptr_t)&help);
9090
}
9191

92-
#ifdef __GNUC__
92+
#if __GNUC__ && !__clang__
9393
#pragma GCC diagnostic pop
9494
#endif

src/QuickThreads/md/setjmp64.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ struct helpdesc { qt_helper_t *hfn; qt_t *jb; void *oldptr; void *newptr; };
4040
static TLS_SPECIFIER void * pbuf[MAXTABLE] = {0};
4141
static TLS_SPECIFIER int pcounter = 1;
4242

43-
#ifdef __GNUC__
43+
#if __GNUC__ && !__clang__
4444
#pragma GCC diagnostic push
4545
#pragma GCC diagnostic ignored "-Wstringop-overflow"
4646
#endif
@@ -116,6 +116,6 @@ void *qt_abort(qt_helper_t *hfn, void *oldptr, void *newptr, qt_t *sp)
116116
longjmp(*(jmp_buf *)&sp, push_buf((void *)&help));
117117
}
118118

119-
#ifdef __GNUC__
119+
#if __GNUC__ && !__clang__
120120
#pragma GCC diagnostic pop
121121
#endif

src/QuickThreads/md/setjmp64_.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ struct helpdesc { qt_helper_t *hfn; qt_t *jb; void *oldptr; void *newptr; };
4646
static TLS_SPECIFIER void * pbuf[MAXTABLE] = {0};
4747
static TLS_SPECIFIER int pcounter = 1;
4848

49-
#ifdef __GNUC__
49+
#if __GNUC__ && !__clang__
5050
#pragma GCC diagnostic push
5151
#pragma GCC diagnostic ignored "-Wstringop-overflow"
5252
#endif
@@ -123,6 +123,6 @@ void *qt_abort(qt_helper_t *hfn, void *oldptr, void *newptr, qt_t *sp)
123123
_longjmp(*(jmp_buf *)&sp, push_buf((void *)&help));
124124
}
125125

126-
#ifdef __GNUC__
126+
#if __GNUC__ && !__clang__
127127
#pragma GCC diagnostic pop
128128
#endif

src/QuickThreads/md/setjmp_m.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct helpdesc { qt_helper_t *hfn; qt_t *jb; void *oldptr; void *newptr; };
3434
# endif
3535
#endif
3636

37-
#ifdef __GNUC__
37+
#if __GNUC__ && !__clang__
3838
#pragma GCC diagnostic push
3939
#pragma GCC diagnostic ignored "-Wstringop-overflow"
4040
#endif
@@ -94,6 +94,6 @@ void *qt_abort(qt_helper_t *hfn, void *oldptr, void *newptr, qt_t *sp)
9494
_longjmp(*(jmp_buf *)&sp, (int)(intptr_t)&help);
9595
}
9696

97-
#ifdef __GNUC__
97+
#if __GNUC__ && !__clang__
9898
#pragma GCC diagnostic pop
9999
#endif

src/QuickThreads/md/sjalloca.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ struct helpdesc { qt_helper_t *hfn; qt_t *jb; void *oldptr; void *newptr; };
1717
#define SHIFTSP(pos) {char *osp = (char *)alloca(0); alloca((((char*)pos)-osp)+256); }
1818
#endif
1919

20-
#ifdef __GNUC__
20+
#if __GNUC__ && !__clang__
2121
#pragma GCC diagnostic push
2222
#pragma GCC diagnostic ignored "-Wstringop-overflow"
2323
#endif
@@ -77,6 +77,6 @@ void *qt_abort(qt_helper_t *hfn, void *oldptr, void *newptr, qt_t *sp)
7777
longjmp(*(jmp_buf *)&sp, (int)(intptr_t)&help);
7878
}
7979

80-
#ifdef __GNUC__
80+
#if __GNUC__ && !__clang__
8181
#pragma GCC diagnostic pop
8282
#endif

0 commit comments

Comments
 (0)