changeset 5822:ce3abb5889fb jdk7u171-b02

8197981: Missing return statement in __sync_val_compare_and_swap_8 Summary: Fix issue discovered by -Wreturn-type on systems without LP64. Reviewed-by: aph
author andrew
date Thu, 15 Feb 2018 04:07:25 +0000
parents ad6e76e3c6a6
children f0e7f5612512
files src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp src/os_cpu/linux_zero/vm/os_linux_zero.cpp
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp	Tue Feb 13 07:13:40 2018 +0000
+++ b/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp	Thu Feb 15 04:07:25 2018 +0000
@@ -548,6 +548,7 @@
     long long unsigned int oldval,
     long long unsigned int newval) {
     ShouldNotCallThis();
+    return 0;
   }
 };
 #endif // !_LP64
--- a/src/os_cpu/linux_zero/vm/os_linux_zero.cpp	Tue Feb 13 07:13:40 2018 +0000
+++ b/src/os_cpu/linux_zero/vm/os_linux_zero.cpp	Thu Feb 15 04:07:25 2018 +0000
@@ -504,6 +504,7 @@
     long long unsigned int oldval,
     long long unsigned int newval) {
     ShouldNotCallThis();
+    return 0;
   }
 };
 #endif // !_LP64