]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdw: Don't use ATOMIC_VAR_INIT
authorMark Wielaard <mark@klomp.org>
Mon, 18 Nov 2024 18:50:17 +0000 (19:50 +0100)
committerMark Wielaard <mark@klomp.org>
Fri, 22 Nov 2024 00:11:17 +0000 (01:11 +0100)
commit5cc89c78499cd37465d7b0b3f35ef0e5d07a98cc
treec4c8ba1233b2ce6ed9a009af3229199dc96d7588
parentb2f225d6bff8201874bdc6fdcb8dff1bcf1b814f
libdw: Don't use ATOMIC_VAR_INIT

ATOMIC_VAR_INIT was introduced in C11, but not deemed necessary to
implement atomics. So deprecated in C17 and removed in C23. Normal
initialization syntax should be sufficient.

* libdw/libdw_alloc.c (next_id): Initialize to zero without
        using ATOMIC_VAR_INIT.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/libdw_alloc.c