ref: 703c69de8164e28212c2df1745e1b4a6dd76fd09
parent: f96918283f27cc813c84c432c99a46d56a9546eb
author: Andoni Morales Alastruey <[email protected]>
date: Tue Mar 18 15:14:27 EDT 2014
codec: add a new macro for unused functions Variables used only for tracing logs can trigger -Werror=unusef-variable when tracing is disabled. This macro helps to silent gcc in those casesWIP
--- a/codec/common/macros.h
+++ b/codec/common/macros.h
@@ -264,5 +264,12 @@
return (v && ! (v & (v - 1)));
}
+#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
+#define WELS_GCC_UNUSED __attribute__((__unused__))
+#else
+#define WELS_GCC_UNUSED
+#endif
+
+
#endif//WELS_MACRO_UTILIZATIONS_H__