From eb9d6f44a963d985d67991deff57a6f8d7d3f0f6 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Mon, 23 May 2005 12:15:19 +0000 Subject: silence gcc warnings --- src/mesa/shader/slang/slang_assemble_constructor.c | 6 ++++++ src/mesa/shader/slang/slang_assemble_typeinfo.c | 2 ++ src/mesa/shader/slang/slang_execute.c | 2 ++ 3 files changed, 10 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/shader/slang/slang_assemble_constructor.c b/src/mesa/shader/slang/slang_assemble_constructor.c index 976e2a02a5e..76a30f6b6c6 100644 --- a/src/mesa/shader/slang/slang_assemble_constructor.c +++ b/src/mesa/shader/slang/slang_assemble_constructor.c @@ -261,6 +261,8 @@ int _slang_assemble_constructor_from_swizzle (slang_assembly_file *file, const s case slang_spec_vec4: master_rows = 4; break; + default: + break; } for (i = 0; i < master_rows; i++) { @@ -290,6 +292,8 @@ int _slang_assemble_constructor_from_swizzle (slang_assembly_file *file, const s (master_rows - i) * 4, i * 4)) return 0; break; + default: + break; } } if (!slang_assembly_file_push_label (file, slang_asm_local_free, 4)) @@ -326,6 +330,8 @@ int _slang_assemble_constructor_from_swizzle (slang_assembly_file *file, const s if (!slang_assembly_file_push (file, slang_asm_float_deref)) return 0; break; + default: + break; } } return 1; diff --git a/src/mesa/shader/slang/slang_assemble_typeinfo.c b/src/mesa/shader/slang/slang_assemble_typeinfo.c index 92af52a0e65..ce78f66ebe2 100644 --- a/src/mesa/shader/slang/slang_assemble_typeinfo.c +++ b/src/mesa/shader/slang/slang_assemble_typeinfo.c @@ -395,6 +395,8 @@ int _slang_typeof_operation (slang_operation *op, slang_assembly_name_space *spa break; } break; + default: + break; } } slang_assembly_typeinfo_destruct (&_ti); diff --git a/src/mesa/shader/slang/slang_execute.c b/src/mesa/shader/slang/slang_execute.c index 1bcc4188a84..e2bdd246e37 100644 --- a/src/mesa/shader/slang/slang_execute.c +++ b/src/mesa/shader/slang/slang_execute.c @@ -154,6 +154,8 @@ static void dump_instruction (FILE *f, slang_assembly *a, unsigned int i) case slang_asm_exit: fprintf (f, "exit"); break; + default: + break; } fprintf (f, "\n"); -- cgit v1.2.3