Mark a few static inline helpers with ASSERTED
Quiet warnings in release builds where these look unused. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3866>
This commit is contained in:
committed by
Marge Bot
parent
d46a5cfe78
commit
f1dc4c9554
@@ -39,7 +39,7 @@ dest_is_ssa(nir_dest *dest, void *data)
|
||||
return dest->is_ssa;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
ASSERTED static inline bool
|
||||
instr_each_src_and_dest_is_ssa(const nir_instr *instr)
|
||||
{
|
||||
if (!nir_foreach_dest((nir_instr *)instr, dest_is_ssa, NULL) ||
|
||||
|
||||
@@ -101,7 +101,7 @@ static const struct {
|
||||
ENTRY(2147483648ul, 2362232233ul, 2362232231ul )
|
||||
};
|
||||
|
||||
static inline bool
|
||||
ASSERTED static inline bool
|
||||
key_pointer_is_reserved(const struct hash_table *ht, const void *key)
|
||||
{
|
||||
return key == NULL || key == ht->deleted_key;
|
||||
|
||||
+1
-1
@@ -92,7 +92,7 @@ static const struct {
|
||||
ENTRY(2147483648ul, 2362232233ul, 2362232231ul )
|
||||
};
|
||||
|
||||
static inline bool
|
||||
ASSERTED static inline bool
|
||||
key_pointer_is_reserved(const void *key)
|
||||
{
|
||||
return key == NULL || key == deleted_key;
|
||||
|
||||
Reference in New Issue
Block a user