Skip to content

Commit

Permalink
fix pragma not available on clang
Browse files Browse the repository at this point in the history
  • Loading branch information
tornaria committed Jan 23, 2025
1 parent 7725dc9 commit 6fd403c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/cysignals/tests.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ cdef extern from "<pthread.h>" nogil:


cdef extern from *:
# disable warning (variable might be clobbered by longjmp)
'#pragma GCC diagnostic ignored "-Wclobbered"'
"""
#if defined(__GNUC__) && !defined(__clang__)
// disable warning (variable might be clobbered by longjmp)
#pragma GCC diagnostic ignored "-Wclobbered"
#endif
"""
ctypedef int volatile_int "volatile int"


Expand Down

0 comments on commit 6fd403c

Please sign in to comment.