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/vlog.c | |
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/vlog.c')
-rw-r--r-- | lib/vlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vlog.c b/lib/vlog.c index 0a615bb66..9ddea48b8 100644 --- a/lib/vlog.c +++ b/lib/vlog.c @@ -118,7 +118,7 @@ static struct ovs_list vlog_modules OVS_GUARDED_BY(log_file_mutex) static int syslog_fd OVS_GUARDED_BY(pattern_rwlock) = -1; /* Log facility configuration. */ -static atomic_int log_facility = ATOMIC_VAR_INIT(0); +static atomic_int log_facility = 0; /* Facility name and its value. */ struct vlog_facility { |