Android: enable all warnings on javac

To help spot issues with Java code more often and more
easily.

Change-Id: I535378f1e128f168200696312a940edb1fb9fab2
Reviewed-by: Tinja Paavoseppä <tinja.paavoseppa@qt.io>
This commit is contained in:
Assam Boudjelthia 2024-10-28 00:50:20 +02:00
parent 0b41b81b9f
commit 1cf03c974c

View File

@ -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)