diff options
| author | sebres <sebres@users.sourceforge.net> | 2024-09-18 15:43:29 (GMT) |
|---|---|---|
| committer | sebres <sebres@users.sourceforge.net> | 2024-09-18 15:43:29 (GMT) |
| commit | a04df5ccbacbfe1a7a3794e2a00007843f9f51a8 (patch) | |
| tree | 5bd864d714f5b08314c0d30458469471a27c4e8b | |
| parent | cc7e4837691316c9edf52aea1e1cc585ac69dda3 (diff) | |
| download | tcl-a04df5ccbacbfe1a7a3794e2a00007843f9f51a8.zip tcl-a04df5ccbacbfe1a7a3794e2a00007843f9f51a8.tar.gz tcl-a04df5ccbacbfe1a7a3794e2a00007843f9f51a8.tar.bz2 | |
closes [f6fc75cbdd0fa593]: silence unknown pragma warning for no-trapv (__GNUC__ is also defined by clang)
| -rw-r--r-- | generic/tclClockFmt.c | 4 |
1 files 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 |
