Skip to content

Commit 12a0e1a

Browse files
committed
closes tcl-[f6fc75cbdd0fa593]: silence unknown pragma warning for no-trapv (__GNUC__ is also defined by clang)
1 parent 53625ef commit 12a0e1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generic/tclClockFmt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ _str2wideInt_no(
9595
}
9696

9797
/* int & Tcl_WideInt overflows may happens here (expected case) */
98-
#if defined(__GNUC__) || defined(__GNUG__)
98+
#if (defined(__GNUC__) || defined(__GNUG__)) && !defined(__clang__)
9999
# pragma GCC optimize("no-trapv")
100100
#endif
101101

@@ -187,7 +187,7 @@ TclAtoWIe(
187187
return _str2wideInt(out, p, e, sign);
188188
}
189189

190-
#if defined(__GNUC__) || defined(__GNUG__)
190+
#if (defined(__GNUC__) || defined(__GNUG__)) && !defined(__clang__)
191191
# pragma GCC reset_options
192192
#endif
193193

0 commit comments

Comments
 (0)