You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "He-Pin (via GitHub)" <gi...@apache.org> on 2026/06/28 22:06:37 UTC

[PR] build: enable -Xfatal-warnings for Scala 2 and -Werror for Scala 3 [pekko-http]

He-Pin opened a new pull request, #1109:
URL: https://github.com/apache/pekko-http/pull/1109

   ### Motivation
   Treating warnings as errors ensures that deprecated API usage and other code quality issues are caught at compile time rather than accumulating silently.
   
   ### Modification
   - Add `-Xfatal-warnings` to Scala 2 `scalacOptions` in `Common.scala`
   - Add `-Werror` to Scala 3 `scalacOptions`
   - Remove `-Wconf:cat=deprecation:s` for Scala 3 so deprecation warnings are no longer silenced
   - Exclude `-Xfatal-warnings` from `Compile / doc` scope to avoid doc generation failures
   
   ### Result
   All compiler warnings are now treated as errors, enforcing higher code quality and catching deprecated API usage at compile time.
   
   ### Tests
   - CI will verify compilation
   
   ### References
   None — build configuration improvement


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


Re: [PR] build: enable -Xfatal-warnings for Scala 2 and -Werror for Scala 3 [pekko-http]

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin merged PR #1109:
URL: https://github.com/apache/pekko-http/pull/1109


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org