diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-02-15 15:51:01 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-02-15 15:51:01 +0000 |
commit | a584e846d435070e67aff904fb79cfc9a6d7d05e (patch) | |
tree | 0518ce5ff48736d064c7f84aea87070b5e69a1af /src/mesa/shader/slang/slang_assemble_typeinfo.c | |
parent | dd02edf381a6bc68bad0cb881548db079aa706bb (diff) |
Fix a few warnings:
- nested comments (use #if 0 / #endif instead)
- missing default clause in switch statements
- use of possibly undefined variables
Diffstat (limited to 'src/mesa/shader/slang/slang_assemble_typeinfo.c')
-rw-r--r-- | src/mesa/shader/slang/slang_assemble_typeinfo.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_assemble_typeinfo.c b/src/mesa/shader/slang/slang_assemble_typeinfo.c index 778ba04ced..830597e9c2 100644 --- a/src/mesa/shader/slang/slang_assemble_typeinfo.c +++ b/src/mesa/shader/slang/slang_assemble_typeinfo.c @@ -329,6 +329,9 @@ int _slang_typeof_operation (slang_operation *op, slang_assembly_name_space *spa case slang_spec_bool:
ti->spec.type = slang_spec_bvec2;
break;
+ default:
+ _mesa_problem(NULL, "unexepected base in _slang_typeof_operation");
+ ti->spec.type = slang_spec_void;
}
break;
case 3:
@@ -343,6 +346,9 @@ int _slang_typeof_operation (slang_operation *op, slang_assembly_name_space *spa case slang_spec_bool:
ti->spec.type = slang_spec_bvec3;
break;
+ default:
+ _mesa_problem(NULL, "unexepected base in _slang_typeof_operation");
+ ti->spec.type = slang_spec_void;
}
break;
case 4:
@@ -357,6 +363,9 @@ int _slang_typeof_operation (slang_operation *op, slang_assembly_name_space *spa case slang_spec_bool:
ti->spec.type = slang_spec_bvec4;
break;
+ default:
+ _mesa_problem(NULL, "unexepected base in _slang_typeof_operation");
+ ti->spec.type = slang_spec_void;
}
break;
default:
|