Fix compiler warnings in release builds

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-10-12 15:12:17 +01:00
parent 065f9ffd4d
commit 583cf35bed
4 changed files with 8 additions and 8 deletions

View File

@@ -249,7 +249,7 @@ static inline int strcmp_wd(const char *needle, const char *src) {
/**
* Return whether a c2_ptr_t is empty.
*/
static inline bool c2_ptr_isempty(const c2_ptr_t p) {
static inline attr_unused bool c2_ptr_isempty(const c2_ptr_t p) {
return !(p.isbranch ? (bool)p.b : (bool)p.l);
}