changeset 9906:1d35411eb7bd

8197981, PR3548: 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 999983606f5c
children cb5711bf53d9
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	Sun May 20 04:46:49 2018 +0100
+++ b/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp	Thu Feb 15 04:07:25 2018 +0000
@@ -457,6 +457,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	Sun May 20 04:46:49 2018 +0100
+++ b/src/os_cpu/linux_zero/vm/os_linux_zero.cpp	Thu Feb 15 04:07:25 2018 +0000
@@ -498,6 +498,7 @@
     long long unsigned int oldval,
     long long unsigned int newval) {
     ShouldNotCallThis();
+    return 0;
   }
 };
 #endif // !_LP64