diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2015-03-19 22:24:20 +0000 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-03-22 08:23:23 +0000 |
commit | fb78cccd7b5c29f9ecd2c86b530449e903dcc093 (patch) | |
tree | 6c2805b81b3121009232db1a7d0ec12fdce05e9d /src | |
parent | d01a7cdae576162791813c131027a6e675a4e6c7 (diff) | |
download | external_mesa3d-fb78cccd7b5c29f9ecd2c86b530449e903dcc093.zip external_mesa3d-fb78cccd7b5c29f9ecd2c86b530449e903dcc093.tar.gz external_mesa3d-fb78cccd7b5c29f9ecd2c86b530449e903dcc093.tar.bz2 |
glsl: Disable MSVC switch warning on a per-file basis.
This addresses
...\glsl_parser.cpp(...) : warning C4065: switch statement contains 'default' but no 'case' labels
This is on code generated by bison, which we have little control.
It seems useful to have this warning otherwise enabled.
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/glsl_parser.yy | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy index 90c216e..aceb3b9 100644 --- a/src/glsl/glsl_parser.yy +++ b/src/glsl/glsl_parser.yy @@ -34,6 +34,10 @@ #include "glsl_types.h" #include "main/context.h" +#ifdef _MSC_VER +#pragma warning( disable : 4065 ) // switch statement contains 'default' but no 'case' labels +#endif + #undef yyerror static void yyerror(YYLTYPE *loc, _mesa_glsl_parse_state *st, const char *msg) |