Skip to content

Commit

Permalink
closes tcl-[f6fc75cbdd0fa593]: silence unknown pragma warning for no-…
Browse files Browse the repository at this point in the history
…trapv (__GNUC__ is also defined by clang)
  • Loading branch information
sebres committed Sep 18, 2024
1 parent 53625ef commit 12a0e1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generic/tclClockFmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ _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

Expand Down Expand Up @@ -187,7 +187,7 @@ TclAtoWIe(
return _str2wideInt(out, p, e, sign);
}

#if defined(__GNUC__) || defined(__GNUG__)
#if (defined(__GNUC__) || defined(__GNUG__)) && !defined(__clang__)
# pragma GCC reset_options
#endif

Expand Down

0 comments on commit 12a0e1a

Please sign in to comment.