File tree 4 files changed +12
-2
lines changed
make/modules/java.desktop/lib
src/hotspot/share/utilities
4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 456
456
unused-result array-bounds
457
457
# noexcept-type required for GCC 7 builds. Not required for GCC 8+.
458
458
# expansion-to-defined required for GCC 9 builds. Not required for GCC 10+.
459
- HARFBUZZ_DISABLED_WARNINGS_CXX_gcc := class-memaccess noexcept-type expansion-to-defined
459
+ HARFBUZZ_DISABLED_WARNINGS_CXX_gcc := class-memaccess noexcept-type expansion-to-defined dangling-reference
460
460
HARFBUZZ_DISABLED_WARNINGS_clang := missing-field-initializers range-loop-analysis
461
461
HARFBUZZ_DISABLED_WARNINGS_microsoft := 4267 4244
462
462
Original file line number Diff line number Diff line change 74
74
#define PRAGMA_STRINGOP_OVERFLOW_IGNORED
75
75
#endif
76
76
77
+ #ifndef PRAGMA_INFINITE_RECURSION_IGNORED
78
+ #define PRAGMA_INFINITE_RECURSION_IGNORED
79
+ #endif
80
+
77
81
#ifndef PRAGMA_NONNULL_IGNORED
78
82
#define PRAGMA_NONNULL_IGNORED
79
83
#endif
Original file line number Diff line number Diff line change 39
39
#define PRAGMA_DIAG_PUSH _Pragma (" GCC diagnostic push" )
40
40
#define PRAGMA_DIAG_POP _Pragma (" GCC diagnostic pop" )
41
41
42
- // Disable -Wdangling-pointer which is introduced in GCC 12.
43
42
#if !defined(__clang_major__) && (__GNUC__ >= 12)
43
+ // Disable -Wdangling-pointer which is introduced in GCC 12.
44
44
#define PRAGMA_DANGLING_POINTER_IGNORED PRAGMA_DISABLE_GCC_WARNING (" -Wdangling-pointer" )
45
+
46
+ // Disable -Winfinite-recursion which is introduced in GCC 12.
47
+ #define PRAGMA_INFINITE_RECURSION_IGNORED PRAGMA_DISABLE_GCC_WARNING (" -Winfinite-recursion" )
45
48
#endif
46
49
47
50
#define PRAGMA_FORMAT_NONLITERAL_IGNORED \
Original file line number Diff line number Diff line change @@ -190,6 +190,8 @@ static bool stack_has_headroom(size_t headroom) {
190
190
}
191
191
192
192
#ifdef ASSERT
193
+ PRAGMA_DIAG_PUSH
194
+ PRAGMA_INFINITE_RECURSION_IGNORED
193
195
void VMError::reattempt_test_hit_stack_limit (outputStream* st) {
194
196
if (stack_has_headroom (_reattempt_required_stack_headroom)) {
195
197
// Use all but (_reattempt_required_stack_headroom - K) unguarded stack space.
@@ -220,6 +222,7 @@ void VMError::reattempt_test_hit_stack_limit(outputStream* st) {
220
222
}
221
223
controlled_crash (14 );
222
224
}
225
+ PRAGMA_DIAG_POP
223
226
#endif // ASSERT
224
227
225
228
bool VMError::can_reattempt_step (const char * &stop_reason) {
You can’t perform that action at this time.
0 commit comments