8236856: AArch64: Spurious GCC warnings

Reviewed-by: adinn
This commit is contained in:
Andrew Haley 2020-01-09 10:01:01 -05:00
parent 984da450f2
commit 682af8be65

View File

@ -55,9 +55,10 @@ inline T Atomic::PlatformXchg<byte_size>::operator()(T volatile* dest,
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 {