libaacs | branch: master | npzacs <[email protected]> | Tue Mar 20 11:07:28 2018 +0200| [548605871ad0e72c9b3dfad1cc67c8f102b669e2] | committer: npzacs
util: merge changes from libbluray > http://git.videolan.org/gitweb.cgi/libaacs.git/?a=commit;h=548605871ad0e72c9b3dfad1cc67c8f102b669e2 --- src/util/attributes.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/util/attributes.h b/src/util/attributes.h index 047ecf7..047b1df 100644 --- a/src/util/attributes.h +++ b/src/util/attributes.h @@ -58,4 +58,10 @@ # define BD_UNLIKELY(x) __builtin_expect((x),0) #endif +#if defined(__GNUC__) && __GNUC__ > 3 +# define BD_USED __attribute__((warn_unused_result)) +#else +# define BD_USED +#endif + #endif /* LIBAACS_ATTRIBUTES_H_ */ _______________________________________________ libaacs-devel mailing list [email protected] https://mailman.videolan.org/listinfo/libaacs-devel
