2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

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>
This commit is contained in:
Fangrui Song
2023-02-28 18:30:56 -08:00
committed by Ilya Maximets
parent e3c821f8ca
commit 71ca8393b7
16 changed files with 19 additions and 28 deletions

View File

@@ -47,7 +47,7 @@ VLOG_DEFINE_THIS_MODULE(dpdk);
static FILE *log_stream = NULL; /* Stream for DPDK log redirection */
/* Indicates successful initialization of DPDK. */
static atomic_bool dpdk_initialized = ATOMIC_VAR_INIT(false);
static atomic_bool dpdk_initialized = false;
static bool
args_contains(const struct svec *args, const char *value)