OpenJDK / jdk / jdk
changeset 57583:a6c0679606c3
8236856: AArch64: Spurious GCC warnings
Reviewed-by: adinn
author | aph |
---|---|
date | Thu, 09 Jan 2020 10:01:01 -0500 |
parents | 6d23020e3da0 |
children | 9dee5a79065b 9f321549fa75 |
files | src/hotspot/os_cpu/linux_aarch64/atomic_linux_aarch64.hpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/hotspot/os_cpu/linux_aarch64/atomic_linux_aarch64.hpp Thu Jan 09 09:30:49 2020 -0500 +++ b/src/hotspot/os_cpu/linux_aarch64/atomic_linux_aarch64.hpp Thu Jan 09 10:01:01 2020 -0500 @@ -55,9 +55,10 @@ return res; } +// __attribute__((unused)) on dest is to get rid of spurious GCC warnings. template<size_t byte_size> template<typename T> -inline T Atomic::PlatformCmpxchg<byte_size>::operator()(T volatile* dest, +inline T Atomic::PlatformCmpxchg<byte_size>::operator()(T volatile* dest __attribute__((unused)), T compare_value, T exchange_value, atomic_memory_order order) const {