Skip to content

Commit

Permalink
Rest of fixable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
a4z committed Nov 11, 2023
1 parent ee45fd1 commit 5e0057d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ ThisBuild / organization := "com.github.cross-language-cpp"

ThisBuild / semanticdbEnabled := true // enable SemanticDB
ThisBuild / semanticdbVersion := scalafixSemanticdb.revision // use Scalafix compatible version
ThisBuild / scalacOptions += "-Ywarn-unused"

// Keep this as a reminder, we will use that later
// ThisBuild / scalacOptions += "-Ywarn-unused"
// us: sbt 'set ThisBuild / scalacOptions += "-Ywarn-unused"' scalafix
// until the last 2 unused warnings are fixed
ThisBuild / scalacOptions ++= Seq("-deprecation", "-unchecked")

val binExt = if (System.getProperty("os.name").startsWith("Windows")) ".bat" else ""
lazy val djinni = (project in file("."))
Expand Down
3 changes: 2 additions & 1 deletion src/main/scala/djinni/parser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import java.io.Writer
import java.util.{Map => JMap}
import scala.collection.JavaConverters._
import scala.collection.mutable
import scala.collection.mutable.ArrayStack
import scala.util.matching.Regex
import scala.util.parsing.combinator.RegexParsers
import scala.util.parsing.input.Position
Expand All @@ -38,7 +39,7 @@ import scala.util.parsing.input.Positional
case class Parser(includePaths: List[String]) {

val visitedFiles: mutable.Set[File] = mutable.Set[File]()
val fileStack: mutable.Stack[File] = mutable.Stack[File]()
val fileStack: ArrayStack[File] = ArrayStack[File]()

private object IdlParser extends RegexParsers {
override protected val whiteSpace: Regex = """[ \t\n\r]+""".r
Expand Down

0 comments on commit 5e0057d

Please sign in to comment.