thomasmodeneis/jgo

fix warnings

thomasmodeneis opened this issue · 0 comments


[warn] /opt/gocode/src/jgo/jgo/src/main/scala/jgo/tools/compiler/parser/combinatorExten/ExceptionTracing.scala:15: This catches all Throwables. If this is really intended, use `case e : Throwable` to clear this warning.
[warn]       case e =>
[warn]            ^
[warn] /opt/gocode/src/jgo/jgo/src/main/scala/jgo/tools/compiler/transl/func/FuncTranslBase.scala:107: This catches all Throwables. If this is really intended, use `case e : Throwable` to clear this warning.
[warn]         case e => e.printStackTrace(); throw AtInstrException(i, e)
[warn]              ^
[warn] /opt/gocode/src/jgo/jgo/src/main/scala/jgo/tools/compiler/transl/TypeResolution.scala:64: match may not be exhaustive.
[warn] It would fail on the following inputs: C128, C64
[warn]   def toAsmType(t: StackType): AsmType = t match {
[warn]                                          ^
[warn] /opt/gocode/src/jgo/jgo/src/main/scala/jgo/tools/compiler/transl/TypeResolution.scala:106: match may not be exhaustive.
[warn] It would fail on the following inputs: C128, C64
[warn]   def typeDesc(t: StackType): String = t match {
[warn]                                        ^
[warn] /opt/gocode/src/jgo/jgo/src/main/scala/jgo/tools/compiler/transl/func/LabelsAndJumps.scala:51: match may not be exhaustive.
[warn] It would fail on the following inputs: ObjEq, ObjNe
[warn]     case Branch(test, l) => test match {
[warn]                             ^
[warn] /opt/gocode/src/jgo/jgo/src/main/scala/jgo/tools/compiler/transl/func/LabelsAndJumps.scala:65: match may not be exhaustive.
[warn] It would fail on the following inputs: ObjEq, ObjNe
[warn]     case BranchNot(test, l) => test match {
[warn]                                ^
[warn] there were 86 deprecation warning(s); re-run with -deprecation for details
[warn] there were 57 feature warning(s); re-run with -feature for details
[warn] 8 warnings found
[info] /opt/gocode/src/jgo/jgo/src/main/java/jgo/runtime/ObjSlice.java: Some input files use unchecked or unsafe operations.
[info] /opt/gocode/src/jgo/jgo/src/main/java/jgo/runtime/ObjSlice.java: Recompile with -Xlint:unchecked for details.
[info] Running jgo.tools.compiler.Main hello.go package.class
[info] Compiling 7 Scala sources to /opt/jgo/target/scala-2.10/test-classes...
[warn] /opt/jgo/src/test/scala/BlockTest.scala:375: This catches all Throwables. If this is really intended, use `case e : Throwable` to clear this warning.
[warn]       case e =>
[warn]            ^
[warn] /opt/jgo/src/test/scala/ParserTest.scala:38: This catches all Throwables. If this is really intended, use `case e : Throwable` to clear this warning.
[warn]       case e =>
[warn]            ^
[warn] two warnings found
[warn] there were 66 deprecation warning(s); re-run with -deprecation for details
[warn] there were 57 feature warning(s); re-run with -feature for details