FFmpeg/libavutil
Andreas Rheinhardt 5d71f97e0e all: Don't use ATOMIC_VAR_INIT
C11 required to use ATOMIC_VAR_INIT to statically initialize
atomic objects with static storage duration. Yet this macro
was unsuitable for initializing structures [1] and was actually
unneeded for all known implementations (this includes our
compatibility fallback implementations which simply wrap the value
in parentheses: #define ATOMIC_VAR_INIT(value) (value)).
Therefore C17 deprecated the macro and C23 actually removed it [2].

Since commit 5ff0eb34d2b1089d3dd9f27fdb51520001709138 we default
to C17 if the compiler supports it; Clang warns about ATOMIC_VAR_INIT
in this mode. Given that no implementation ever needed this macro,
this commit stops using it to avoid this warning.

[1]: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2396.htm#dr_485
[2]: https://en.cppreference.com/w/c/atomic/ATOMIC_VAR_INIT

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2024-03-28 09:12:48 +01:00
..
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2024-03-24 14:53:57 +01:00
2023-07-12 15:35:37 +02:00
2024-03-10 13:51:37 +01:00
2024-03-04 17:45:00 +01:00
2022-09-13 16:50:43 -03:00
2024-03-28 09:12:48 +01:00
2022-11-06 08:26:50 +01:00
2023-11-18 19:55:42 +01:00
2023-09-02 02:49:06 +02:00
2023-09-02 02:49:06 +02:00
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2024-03-27 11:33:45 +01:00
2024-03-27 11:33:45 +01:00
2023-09-07 00:42:10 +02:00
2022-10-17 09:56:47 +02:00
2022-02-24 12:56:49 +01:00
2023-09-07 00:42:10 +02:00
2024-03-28 09:12:48 +01:00
2023-09-07 00:42:10 +02:00
2023-09-07 00:42:10 +02:00
2024-03-08 07:36:15 +01:00
2024-03-07 08:53:30 -03:00
2024-01-16 01:34:57 +01:00
2023-07-22 21:35:15 +03:00
2022-10-17 09:51:47 +02:00
2023-09-07 00:42:10 +02:00
2024-02-22 00:29:59 -03:00
2023-09-01 23:59:10 +02:00
2023-08-08 09:46:11 +02:00
2023-08-08 09:46:11 +02:00