larsth / go9p

Automatically exported from code.google.com/p/go9p

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

label "defined and not used"

GoogleCodeExporter opened this issue · comments

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

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

  • Changed state: Fixed