Skip to content

Commit

Permalink
Android: enable all warnings on javac
Browse files Browse the repository at this point in the history
To help spot issues with Java code more often and more
easily.

Change-Id: I535378f1e128f168200696312a940edb1fb9fab2
Reviewed-by: Tinja Paavoseppä <[email protected]>
  • Loading branch information
Issam-b committed Oct 30, 2024
1 parent 0b41b81 commit 1cf03c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/QtJavaHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ function(qt_internal_add_jar target)
endif()

set(CMAKE_JAVA_COMPILE_FLAGS -source "${javac_source_version}" -target "${javac_target_version}"
-Xlint:unchecked,cast,divzero,fallthrough,overrides,path -classpath "${QT_ANDROID_JAR}")
-Xlint:all -classpath "${QT_ANDROID_JAR}"
)
add_jar(${ARGV})

foreach(f IN LISTS arg_SOURCES)
Expand Down

0 comments on commit 1cf03c9

Please sign in to comment.