[Mesa-dev] [RFC PATCH 4/4] mesa get: unreachable

Giuseppe Bilotta giuseppe.bilotta at gmail.com
Sat Apr 22 07:52:14 UTC 2017


Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
---
 src/mesa/main/get.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index cf3ee6385e..3293c00f96 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -1405,8 +1405,7 @@ find_value(const char *func, GLenum pname, void **p, union value *v)
       *p = v;
       return d;
    default:
-      assert(0);
-      break;
+      unreachable("invalid find_value location");
    }
 
    /* silence warning */
-- 
2.13.0.rc0.207.gb442654931



More information about the mesa-dev mailing list