]> Cypherpunks repositories - gostls13.git/commitdiff
silence compiler warning
authorKen Thompson <ken@golang.org>
Mon, 17 Nov 2008 20:55:22 +0000 (12:55 -0800)
committerKen Thompson <ken@golang.org>
Mon, 17 Nov 2008 20:55:22 +0000 (12:55 -0800)
R=r
OCL=19382
CL=19382

src/cmd/6g/gen.c

index 9f5e8a83d50ea27a68ba9249fa3ca75d65c9252c..c5159f9d75c42c716a4d86b4644e485d8c88ae7f 100644 (file)
@@ -6,6 +6,7 @@
 #undef EXTERN
 #define        EXTERN
 #include "gg.h"
+//#include "opt.h"
 
 enum
 {
@@ -92,6 +93,11 @@ if(throwreturn == N) {
        gclean();
        checklabels();
 
+//     if(debug['N']) {
+//             regopt(ptxt);
+//             debug['N'] = 0;
+//     }
+
        if(curfn->type->outtuple != 0) {
                gins(ACALL, N, throwreturn);
        }
@@ -432,7 +438,7 @@ casecmp(Case *c1, Case *c2)
 
        w = whatis(c1->scase);
        if(w != whatis(c2->scase))
-               fatal("casecmp");
+               fatal("casecmp1");
 
        switch(w) {
        case Wlitfloat:
@@ -445,6 +451,8 @@ casecmp(Case *c1, Case *c2)
 //     case Wlitnil:
        }
 
+       fatal("casecmp2");
+       return 0;
 }
 
 void