Files
ffmpeg-rockchip/libavformat
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 5ff0eb34d2 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
..
2023-01-27 19:45:36 +01:00
2024-03-28 09:12:48 +01:00
2022-12-01 11:21:15 +01:00
2024-03-26 06:36:43 +01:00
2024-03-11 16:52:42 +01:00
2023-06-27 12:52:38 -03:00
2022-03-16 14:05:26 +02:00
2024-03-26 06:36:43 +01:00
2024-03-17 15:10:05 +01:00
2024-03-26 00:08:25 +01:00
2023-05-31 09:03:58 -07:00
2024-03-26 07:52:53 +08:00
2024-03-22 23:57:19 +01:00
2023-09-28 19:37:58 +02:00
2022-03-15 09:42:35 -03:00
2023-11-08 17:37:58 +11:00
2022-03-15 09:42:36 -03:00
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2022-03-26 00:42:00 +02:00
2024-03-15 12:51:15 +01:00
2022-08-31 16:24:22 +02:00
2024-03-27 01:04:54 +01:00
2024-03-26 06:36:43 +01:00
2024-03-26 06:36:43 +01:00