You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@auron.apache.org by "Copilot (via GitHub)" <gi...@apache.org> on 2026/01/19 11:20:00 UTC

Re: [PR] [AURON #1870][BUILD] Add `-Xfatal-warnings` to scala-maven-plugin and fix related compilation failures [auron]

Copilot commented on code in PR #1872:
URL: https://github.com/apache/auron/pull/1872#discussion_r2704345623


##########
spark-extension-shims-spark/src/main/scala/org/apache/spark/sql/execution/auron/shuffle/AuronBlockStoreShuffleReader.scala:
##########
@@ -37,6 +37,9 @@ class AuronBlockStoreShuffleReader[K, C](
     extends AuronBlockStoreShuffleReaderBase[K, C](handle, context)
     with Logging {
 
+  // Touch mapOutputTracker to suppress -Xfatal-warnings (used in Spark 3.2+, unused in 3.0/3.1)
+  private val _ = mapOutputTracker

Review Comment:
   Instead of creating a dummy field to touch the parameter, consider using a @nowarn annotation on the class or the mapOutputTracker parameter itself. This would be clearer and more idiomatic. For example, you could annotate the mapOutputTracker parameter with @nowarn("cat=unused") in the parameter list.



-- 
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: commits-unsubscribe@auron.apache.org

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