[FFmpeg-devel] [PATCH 22/22] avutil/attributes: Make av_uninit do nothing
Zhao Zhili
quinkblack at foxmail.com
Fri Apr 11 11:00:27 EEST 2025
From: Zhao Zhili <zhilizhao at tencent.com>
The macro is dangerous since it can hide real issue.
---
libavutil/attributes.h | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/libavutil/attributes.h b/libavutil/attributes.h
index 04c615c952..a7c64cf8fc 100644
--- a/libavutil/attributes.h
+++ b/libavutil/attributes.h
@@ -150,11 +150,10 @@
# define av_alias
#endif
-#if (defined(__GNUC__) || defined(__clang__)) && !defined(__INTEL_COMPILER)
-# define av_uninit(x) x=x
-#else
-# define av_uninit(x) x
-#endif
+/**
+ * This macro is deprecated
+ */
+#define av_uninit(x) x
#if defined(__GNUC__) || defined(__clang__)
# define av_builtin_constant_p __builtin_constant_p
--
2.46.0
More information about the ffmpeg-devel
mailing list