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

Multimedia / FFmpeg - Michael Niedermayer [gmx.at] - 16 February 2015 17:21 EST



###

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

06309fc avutil/attributes: Add () to protect the AV_GCC_VERSION_AT_LEAST() arguments
libavutil/attributes.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

  • Share