diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-12-06 09:57:42 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-12-06 16:35:35 +0300 |
commit | 1c9ce343b2a62de88194becfa4b5687608b8c03d (patch) | |
tree | 09bbf347d5466e146bf076ca3d7844164850bf60 /pthread_stop_world.c | |
parent | bc1866b1405ce88d1acfcc05289f75b7ca4ad4e4 (diff) | |
download | bdwgc-1c9ce343b2a62de88194becfa4b5687608b8c03d.tar.gz |
Eliminate 'skipping config since MAXSIG/_NSIG is unknown' cppcheck FP
* pthread_stop_world.c [!NACL && DEBUG_THREADS && !NSIG && CPPCHECK]
(NSIG): Define to 32.
Diffstat (limited to 'pthread_stop_world.c')
-rw-r--r-- | pthread_stop_world.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pthread_stop_world.c b/pthread_stop_world.c index 9e98b6ed..993db7d9 100644 --- a/pthread_stop_world.c +++ b/pthread_stop_world.c @@ -75,7 +75,9 @@ GC_INLINE void GC_usleep(unsigned us) #ifdef DEBUG_THREADS # ifndef NSIG -# if defined(MAXSIG) +# ifdef CPPCHECK +# define NSIG 32 +# elif defined(MAXSIG) # define NSIG (MAXSIG+1) # elif defined(_NSIG) # define NSIG _NSIG @@ -84,7 +86,7 @@ GC_INLINE void GC_usleep(unsigned us) # else # error define NSIG # endif -# endif /* NSIG */ +# endif /* !NSIG */ void GC_print_sig_mask(void) { |