glsl: added default case in _fetch_token() to silence warnings
authorBrian Paul <brianp@vmware.com>
Tue, 29 Dec 2009 15:47:40 +0000 (08:47 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 29 Dec 2009 15:47:40 +0000 (08:47 -0700)
src/glsl/cl/sl_cl_parse.c

index 5dddf434e15b516802f5aae816de5fd878470b2d..e9b3707ac121e1499077038a0a4c62e5d2c638be 100644 (file)
@@ -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];