Mesa (7.9): glsl: Quiet unreachable no-return-from-function warning.

Ian Romanick idr at kemper.freedesktop.org
Fri Dec 17 02:21:28 UTC 2010


Module: Mesa
Branch: 7.9
Commit: 23a868930ca27a721f57f848d2f14592ffa948a5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=23a868930ca27a721f57f848d2f14592ffa948a5

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Nov 30 13:28:47 2010 -0800

glsl: Quiet unreachable no-return-from-function warning.
(cherry picked from commit d56c97413ee65e40e3544b89ffca450df9ba1c06)

---

 src/glsl/ast_to_hir.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index 42d5f18..9dcdab0 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -683,6 +683,8 @@ do_comparison(void *mem_ctx, int operation, ir_rvalue *op0, ir_rvalue *op1)
        */
       return new(mem_ctx) ir_constant(true);
    }
+
+   return NULL;
 }
 
 ir_rvalue *




More information about the mesa-commit mailing list