mirror of
https://github.com/QuasarApp/backward-cpp.git
synced 2025-04-29 03:44:31 +00:00
Merge pull request #125 from okeuday/master
Fix compilation for GCC (tested with 5.4.0)
This commit is contained in:
commit
06cfe31a34
@ -3704,10 +3704,14 @@ public:
|
||||
SA_RESETHAND);
|
||||
sigfillset(&action.sa_mask);
|
||||
sigdelset(&action.sa_mask, posix_signals[i]);
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdisabled-macro-expansion"
|
||||
#endif
|
||||
action.sa_sigaction = &sig_handler;
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
int r = sigaction(posix_signals[i], &action, nullptr);
|
||||
if (r < 0) success = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user