silence gcc warnings
authorKeith Whitwell <keith@tungstengraphics.com>
Mon, 23 May 2005 12:15:19 +0000 (12:15 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 23 May 2005 12:15:19 +0000 (12:15 +0000)
src/mesa/shader/slang/slang_assemble_constructor.c
src/mesa/shader/slang/slang_assemble_typeinfo.c
src/mesa/shader/slang/slang_execute.c

index 976e2a02a5e43b90fd4e339cb8777ad123372c6e..76a30f6b6c6836a0c729eda55f84a25102ef889c 100644 (file)
@@ -261,6 +261,8 @@ int _slang_assemble_constructor_from_swizzle (slang_assembly_file *file, const s
        case slang_spec_vec4:\r
                master_rows = 4;\r
                break;\r
+       default:\r
+          break;\r
        }\r
        for (i = 0; i < master_rows; i++)\r
        {\r
@@ -290,6 +292,8 @@ int _slang_assemble_constructor_from_swizzle (slang_assembly_file *file, const s
                                (master_rows - i) * 4, i * 4))\r
                                return 0;\r
                        break;\r
+               default:\r
+                     break;\r
                }\r
        }\r
        if (!slang_assembly_file_push_label (file, slang_asm_local_free, 4))\r
@@ -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))\r
                                return 0;\r
                        break;\r
+               default:\r
+                  break;\r
                }\r
        }\r
        return 1;\r
index 92af52a0e652e0c112f67e3a39841a49489a98e9..ce78f66ebe2b7754f117a40612ca7eef7d7615fb 100644 (file)
@@ -395,6 +395,8 @@ int _slang_typeof_operation (slang_operation *op, slang_assembly_name_space *spa
                                                break;\r
                                        }\r
                                        break;\r
+                               default:\r
+                                  break;\r
                                }\r
                        }\r
                        slang_assembly_typeinfo_destruct (&_ti);\r
index 1bcc4188a840ffbbe71dfc97a90301ee48ea0e96..e2bdd246e376b1d88ffcc70825f229497576c9eb 100644 (file)
@@ -154,6 +154,8 @@ static void dump_instruction (FILE *f, slang_assembly *a, unsigned int i)
        case slang_asm_exit:\r
                fprintf (f, "exit");\r
                break;\r
+       default:\r
+          break;\r
        }\r
 \r
        fprintf (f, "\n");\r