OSDN Git Service

compiler: Give an error if a variable is defined but not used.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Jan 2012 23:55:31 +0000 (23:55 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Jan 2012 23:55:31 +0000 (23:55 +0000)
commit7d83409086556232adbe25c1406be29ec68402e8
treeed963d480affb07d364c84b0b56a97f7bb92427b
parentc1e8b3edf7b5038f070c7a9732e58d066081a636
compiler: Give an error if a variable is defined but not used.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183458 138bc75d-0d04-0410-961f-82ee72b054a4
22 files changed:
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/lex.cc
gcc/go/gofrontend/lex.h
gcc/go/gofrontend/parse.cc
gcc/go/gofrontend/parse.h
gcc/testsuite/go.test/test/blank1.go
gcc/testsuite/go.test/test/fixedbugs/bug014.go
gcc/testsuite/go.test/test/fixedbugs/bug108.go
gcc/testsuite/go.test/test/fixedbugs/bug141.go
gcc/testsuite/go.test/test/fixedbugs/bug175.go
gcc/testsuite/go.test/test/fixedbugs/bug200.go
gcc/testsuite/go.test/test/fixedbugs/bug213.go
gcc/testsuite/go.test/test/fixedbugs/bug248.dir/bug2.go
gcc/testsuite/go.test/test/fixedbugs/bug309.go
gcc/testsuite/go.test/test/fixedbugs/bug363.go
gcc/testsuite/go.test/test/func4.go
gcc/testsuite/go.test/test/indirect1.go
libgo/go/io/ioutil/ioutil_test.go
libgo/go/reflect/type.go
libgo/go/reflect/value.go