mirror of
https://github.com/ccxvii/mujs.git
synced 2026-02-05 17:29:43 +08:00
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:
7
jsi.h
7
jsi.h
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user