don't disable -Wclobber on clang
This commit is contained in:
parent
1bd778f52e
commit
c4bcc86ed0
1 changed files with 2 additions and 2 deletions
|
|
@ -223,7 +223,7 @@ bool svm_stack_ensure_cap(HAllocator *mm__, HSVMContext *ctx, size_t addl) {
|
||||||
* the second return; here, the only variables that could matter for
|
* the second return; here, the only variables that could matter for
|
||||||
* are arena and ctx (because they're referenced in "goto fail").
|
* are arena and ctx (because they're referenced in "goto fail").
|
||||||
*/
|
*/
|
||||||
#ifdef __GNUC__
|
#if defined(__GNUC__) && !defined(__clang__)
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wunknown-pragmas"
|
#pragma GCC diagnostic ignored "-Wunknown-pragmas"
|
||||||
#pragma GCC diagnostic ignored "-Wclobbered"
|
#pragma GCC diagnostic ignored "-Wclobbered"
|
||||||
|
|
@ -311,7 +311,7 @@ HParseResult *run_trace(HAllocator *mm__, HRVMProg *orig_prog, HRVMTrace *trace,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
// Reenable -Wclobber
|
// Reenable -Wclobber
|
||||||
#ifdef __GNUC__
|
#if defined(__GNUC__) && !defined(__clang__)
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue