From 71ca8393b7005d4705336ad1bc1be9ce9ae49ef9 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 28 Feb 2023 18:30:56 -0800 Subject: 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 Signed-off-by: Ilya Maximets --- lib/vlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/vlog.c') 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 { -- cgit v1.2.1