File tree 3 files changed +9
-2
lines changed
make/modules/java.desktop/lib
src/hotspot/share/utilities
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 464
464
# expansion-to-defined required for GCC 9 builds. Not required for GCC 10+.
465
465
HARFBUZZ_DISABLED_WARNINGS_CXX_gcc := reorder delete-non-virtual-dtor strict-overflow \
466
466
maybe-uninitialized class-memaccess unused-result extra use-after-free noexcept-type \
467
- expansion-to-defined
467
+ expansion-to-defined dangling-reference
468
468
HARFBUZZ_DISABLED_WARNINGS_clang := unused-value incompatible-pointer-types \
469
469
tautological-constant-out-of-range-compare int-to-pointer-cast \
470
470
undef missing-field-initializers range-loop-analysis \
Original file line number Diff line number Diff line change 70
70
#define PRAGMA_STRINGOP_TRUNCATION_IGNORED
71
71
#endif
72
72
73
+ #ifndef PRAGMA_INFINITE_RECURSION_IGNORED
74
+ #define PRAGMA_INFINITE_RECURSION_IGNORED
75
+ #endif
76
+
73
77
#endif // SHARE_UTILITIES_COMPILERWARNINGS_HPP
Original file line number Diff line number Diff line change 38
38
#define PRAGMA_DISABLE_GCC_WARNING (option_string ) \
39
39
PRAGMA_DISABLE_GCC_WARNING_AUX (GCC diagnostic ignored option_string)
40
40
41
- // Disable -Wdangling-pointer which is introduced in GCC 12.
42
41
#if !defined(__clang_major__) && (__GNUC__ >= 12)
42
+ // Disable -Wdangling-pointer which is introduced in GCC 12.
43
43
#define PRAGMA_DANGLING_POINTER_IGNORED PRAGMA_DISABLE_GCC_WARNING (" -Wdangling-pointer" )
44
+
45
+ // Disable -Winfinite-recursion which is introduced in GCC 12.
46
+ #define PRAGMA_INFINITE_RECURSION_IGNORED PRAGMA_DISABLE_GCC_WARNING (" -Winfinite-recursion" )
44
47
#endif
45
48
46
49
#define PRAGMA_FORMAT_NONLITERAL_IGNORED \
You can’t perform that action at this time.
0 commit comments