Skip to content

Commit b65dcfa

Browse files
committed
8197981: Missing return statement in __sync_val_compare_and_swap_8
Reviewed-by: andrew, dholmes
1 parent 5b51085 commit b65dcfa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/hotspot/os_cpu/bsd_zero/os_bsd_zero.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ extern "C" {
435435
long long unsigned int oldval,
436436
long long unsigned int newval) {
437437
ShouldNotCallThis();
438+
return 0; // silence compiler warnings
438439
}
439440
};
440441
#endif // !_LP64

src/hotspot/os_cpu/linux_zero/os_linux_zero.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ extern "C" {
479479
long long unsigned int oldval,
480480
long long unsigned int newval) {
481481
ShouldNotCallThis();
482-
return 0; // silence compiler compiler warnings
482+
return 0; // silence compiler warnings
483483
}
484484
};
485485
#endif // !_LP64

0 commit comments

Comments
 (0)