Skip to content

Commit f0d66b1

Browse files
committed
test-signalhandler.cpp: fixed -Wunused-macros warning on macOS
``` /Users/runner/work/cppcheck/cppcheck/test/signal/test-signalhandler.cpp:20:9: error: macro is not used [-Werror,-Wunused-macros] 20 | #define _GNU_SOURCE // required to have feenableexcept() | ^ ```
1 parent f49e8b8 commit f0d66b1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/signal/test-signalhandler.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19+
#if !defined(__APPLE__)
1920
#ifndef _GNU_SOURCE
2021
#define _GNU_SOURCE // required to have feenableexcept()
2122
#endif
23+
#endif
2224

2325
#include "config.h"
2426

0 commit comments

Comments
 (0)