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:
Kristian H. Kristensen
2020-02-18 14:40:00 -08:00
committed by Marge Bot
parent d46a5cfe78
commit f1dc4c9554
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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) ||
+1 -1
View File
@@ -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
View File
@@ -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;