Skip to content

Commit

Permalink
Issue #152: Work around GCC compiler bug introduced in 2015.
Browse files Browse the repository at this point in the history
  • Loading branch information
ccxvii committed Nov 5, 2021
1 parent e7ba876 commit 90a6342
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jsi.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
#include <float.h>
#include <limits.h>

/* NOTE: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103052 */
#ifdef __GNUC__
#if (__GNUC__ >= 6)
#pragma GCC optimize ("no-ipa-pure-const")
#endif
#endif

/* Microsoft Visual C */
#ifdef _MSC_VER
#pragma warning(disable:4996) /* _CRT_SECURE_NO_WARNINGS */
Expand Down

0 comments on commit 90a6342

Please sign in to comment.