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 /ofproto | |
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 'ofproto')
-rw-r--r-- | ofproto/ofproto-dpif-upcall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c index 06873d477..4dab51dff 100644 --- a/ofproto/ofproto-dpif-upcall.c +++ b/ofproto/ofproto-dpif-upcall.c @@ -420,8 +420,8 @@ static int udpif_flow_unprogram(struct udpif *udpif, struct udpif_key *ukey, static upcall_callback upcall_cb; static dp_purge_callback dp_purge_cb; -static atomic_bool enable_megaflows = ATOMIC_VAR_INIT(true); -static atomic_bool enable_ufid = ATOMIC_VAR_INIT(true); +static atomic_bool enable_megaflows = true; +static atomic_bool enable_ufid = true; void udpif_init(void) |