[FFmpeg-cvslog] avutil/attributes: Add () to protect the AV_GCC_VERSION_AT_LEAST() arguments

Michael Niedermayer git at videolan.org
Tue Feb 17 00:30:43 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Feb 17 00:21:48 2015 +0100| [06309fc704dc11445bd9f11c0db7e24879508462] | committer: Michael Niedermayer

avutil/attributes: Add () to protect the AV_GCC_VERSION_AT_LEAST() arguments

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=06309fc704dc11445bd9f11c0db7e24879508462
---

 libavutil/attributes.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/attributes.h b/libavutil/attributes.h
index 7d3f4a9..ebcdd6b 100644
--- a/libavutil/attributes.h
+++ b/libavutil/attributes.h
@@ -27,7 +27,7 @@
 #define AVUTIL_ATTRIBUTES_H
 
 #ifdef __GNUC__
-#    define AV_GCC_VERSION_AT_LEAST(x,y) (__GNUC__ > x || __GNUC__ == x && __GNUC_MINOR__ >= y)
+#    define AV_GCC_VERSION_AT_LEAST(x,y) (__GNUC__ > (x) || __GNUC__ == (x) && __GNUC_MINOR__ >= (y))
 #else
 #    define AV_GCC_VERSION_AT_LEAST(x,y) 0
 #endif



More information about the ffmpeg-cvslog mailing list