diff options
author | Fangrui Song <maskray@google.com> | 2023-02-28 18:30:56 -0800 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2023-03-06 19:27:19 +0100 |
commit | 71ca8393b7005d4705336ad1bc1be9ce9ae49ef9 (patch) | |
tree | 431a8b4d9c7854093cfb655fe6adea9aa63758c8 /lib/ovs-atomic-x86_64.h | |
parent | e3c821f8ca866508b8aba70b08ed016898a06625 (diff) | |
download | openvswitch-71ca8393b7005d4705336ad1bc1be9ce9ae49ef9.tar.gz |
treewide: Remove uses of ATOMIC_VAR_INIT.
ATOMIC_VAR_INIT has a trivial definition
`#define ATOMIC_VAR_INIT(value) (value)`,
is deprecated in C17/C++20, and will be removed in newer standards in
newer GCC/Clang (e.g. https://reviews.llvm.org/D144196).
Signed-off-by: Fangrui Song <maskray@google.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'lib/ovs-atomic-x86_64.h')
-rw-r--r-- | lib/ovs-atomic-x86_64.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/ovs-atomic-x86_64.h b/lib/ovs-atomic-x86_64.h index 3bdaf2f08..2f538699f 100644 --- a/lib/ovs-atomic-x86_64.h +++ b/lib/ovs-atomic-x86_64.h @@ -120,7 +120,6 @@ typedef enum { #define IS_LOCKLESS_ATOMIC(OBJECT) \ (sizeof(OBJECT) <= 8 && IS_POW2(sizeof(OBJECT))) -#define ATOMIC_VAR_INIT(VALUE) VALUE #define atomic_init(OBJECT, VALUE) (*(OBJECT) = (VALUE), (void) 0) /* |