diff options
author | Keith Whitwell <[email protected]> | 2005-05-23 12:15:19 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2005-05-23 12:15:19 +0000 |
commit | eb9d6f44a963d985d67991deff57a6f8d7d3f0f6 (patch) | |
tree | 57bc66d6e04ac1618412bd2ab8f5bb7419253daa | |
parent | 241b6b7ab1a1a11c7fc516d1b6ff2c1bc8aba238 (diff) |
silence gcc warnings
-rw-r--r-- | src/mesa/shader/slang/slang_assemble_constructor.c | 6 | ||||
-rw-r--r-- | src/mesa/shader/slang/slang_assemble_typeinfo.c | 2 | ||||
-rw-r--r-- | src/mesa/shader/slang/slang_execute.c | 2 |
3 files changed, 10 insertions, 0 deletions
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");
|