diff options
author | Kristian H. Kristensen <[email protected]> | 2020-02-18 14:40:00 -0800 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-19 18:34:33 +0000 |
commit | f1dc4c9554ce913acf4d3236b4d43b829fb92073 (patch) | |
tree | 0fe940409affcf90b23b3b719252a65799175a72 /src/util | |
parent | d46a5cfe781a1f51a1338d994fb8097d9d579d2e (diff) |
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>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/hash_table.c | 2 | ||||
-rw-r--r-- | src/util/set.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/util/hash_table.c b/src/util/hash_table.c index 6bac4a4f68e..3d5de59a040 100644 --- a/src/util/hash_table.c +++ b/src/util/hash_table.c @@ -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; diff --git a/src/util/set.c b/src/util/set.c index 5173c24474c..ffe0fe808ea 100644 --- a/src/util/set.c +++ b/src/util/set.c @@ -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; |