r300: Corrected a couple of "control reaches end of non-void function" warnings.
authorOliver McFadden <z3ro.geek@gmail.com>
Wed, 9 May 2007 03:40:06 +0000 (03:40 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Wed, 9 May 2007 03:40:06 +0000 (03:40 +0000)
src/mesa/drivers/dri/r300/r300_vertprog.c

index ddb4996ee028e1c357524832d0a9132ac2c68118..39d127c64ac6034a5ac9317e7bed7ed934e5afab 100644 (file)
@@ -174,6 +174,7 @@ static unsigned long t_dst_class(enum register_file file)
                default:
                        fprintf(stderr, "problem in %s", __FUNCTION__);
                        _mesa_exit(-1);
+                       return -1;
        }
 }
 
@@ -208,6 +209,7 @@ static unsigned long t_src_class(enum register_file file)
                default:
                        fprintf(stderr, "problem in %s", __FUNCTION__);
                        _mesa_exit(-1);
+                       return -1;
        }
 }