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
This commit is contained in:
Andoni Morales Alastruey 2014-03-18 19:14:27 +01:00
parent f96918283f
commit 703c69de81

View File

@ -264,5 +264,12 @@ static inline bool WELS_POWER2_IF (uint32_t v) {
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__