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:
parent
f96918283f
commit
703c69de81
@ -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__
|
||||
|
Loading…
x
Reference in New Issue
Block a user