Mesa (master): Mark a few static inline helpers with ASSERTED

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Feb 19 19:05:19 UTC 2020


Module: Mesa
Branch: master
Commit: f1dc4c9554ce913acf4d3236b4d43b829fb92073
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f1dc4c9554ce913acf4d3236b4d43b829fb92073

Author: Kristian H. Kristensen <hoegsberg at google.com>
Date:   Tue Feb 18 14:40:00 2020 -0800

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>

---

 src/compiler/nir/nir_instr_set.c | 2 +-
 src/util/hash_table.c            | 2 +-
 src/util/set.c                   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/compiler/nir/nir_instr_set.c b/src/compiler/nir/nir_instr_set.c
index cb0f2befa86..9ddcdcb4dc2 100644
--- a/src/compiler/nir/nir_instr_set.c
+++ b/src/compiler/nir/nir_instr_set.c
@@ -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) ||
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;



More information about the mesa-commit mailing list