Mesa (master): glsl: added default case in _fetch_token() to silence warnings

Brian Paul brianp at kemper.freedesktop.org
Tue Dec 29 08:12:20 PST 2009


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

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Dec 29 08:47:40 2009 -0700

glsl: added default case in _fetch_token() to silence warnings

---

 src/glsl/cl/sl_cl_parse.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/glsl/cl/sl_cl_parse.c b/src/glsl/cl/sl_cl_parse.c
index 5dddf43..e9b3707 100644
--- a/src/glsl/cl/sl_cl_parse.c
+++ b/src/glsl/cl/sl_cl_parse.c
@@ -454,6 +454,8 @@ _fetch_token(struct parse_context *ctx,
       case SL_PP_EOF:
          ctx->tokens_read++;
          break;
+      default:
+         ; /* no-op */
       }
    }
    return &ctx->tokens[pos];



More information about the mesa-commit mailing list