hbhasker / go9p

Automatically exported from code.google.com/p/go9p
Other
0 stars 0 forks source link

label "defined and not used" #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
A recent change to Go compilers, "gc: diagnose unused labels" 
(http://code.google.com/p/go/source/detail?r=570c3ce8), makes compilation of 
srv/srv.go fail:

srv.go:323: label unknown defined and not used

After that label definition is removed, the package compiles again:

--- a/p/srv/srv.go
+++ b/p/srv/srv.go
@@ -320,7 +320,6 @@

    switch req.Tc.Type {
    default:
-   unknown:
        req.RespondError(&p.Error{"unknown message type", syscall.ENOSYS})

    case p.Tversion:

Original issue reported on code.google.com by mt4...@googlemail.com on 25 Mar 2011 at 9:31

GoogleCodeExporter commented 8 years ago

Original comment by mirtchov...@gmail.com on 27 Mar 2012 at 4:55