From a04df5ccbacbfe1a7a3794e2a00007843f9f51a8 Mon Sep 17 00:00:00 2001 From: sebres Date: Wed, 18 Sep 2024 15:43:29 +0000 Subject: closes [f6fc75cbdd0fa593]: silence unknown pragma warning for no-trapv (__GNUC__ is also defined by clang) --- generic/tclClockFmt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generic/tclClockFmt.c b/generic/tclClockFmt.c index abd55ab..4017d5f 100644 --- a/generic/tclClockFmt.c +++ b/generic/tclClockFmt.c @@ -113,7 +113,7 @@ Clock_str2wideInt_no( } /* int & Tcl_WideInt overflows may happens here (expected case) */ -#if defined(__GNUC__) || defined(__GNUG__) +#if (defined(__GNUC__) || defined(__GNUG__)) && !defined(__clang__) # pragma GCC optimize("no-trapv") #endif @@ -209,7 +209,7 @@ TclAtoWIe( return Clock_str2wideInt(out, p, e, sign); } -#if defined(__GNUC__) || defined(__GNUG__) +#if (defined(__GNUC__) || defined(__GNUG__)) && !defined(__clang__) # pragma GCC reset_options #endif -- cgit v0.12