Issue #152: Work around GCC compiler bug introduced in 2015.

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103052 for details.
This commit is contained in:
Tor Andersson
2021-11-04 12:21:12 +01:00
parent e7ba87678f
commit 90a63426ee

7
jsi.h
View File

@@ -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 */