summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAssam Boudjelthia <assam.boudjelthia@qt.io>2023-11-15 11:25:33 +0200
committerAssam Boudjelthia <assam.boudjelthia@qt.io>2023-11-24 03:48:39 +0200
commit9826e4e38b8cfa12d292fb68903af2cc904f6d67 (patch)
treea3f652dd85a2b42084090845e0c7d2e41ce0c98b
parent41765ef3e25fc77ead4832a7696f73aa03ee00b4 (diff)
Android: report more warnings for Jar builds
this makes it more visible in the build when introduing or having java code that for example might be doing something wrong. deprecation option can't be added at this point since we compile the java code against the max supported version and that will always print a lot of deprecation warnings that are valid for the max version but not valid for the min supported version. Task-number: QTBUG-118077 Change-Id: I7d1e9c80d5208817a342cc1d79a28f233feeda0e Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
-rw-r--r--cmake/QtJavaHelpers.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtJavaHelpers.cmake b/cmake/QtJavaHelpers.cmake
index 6964319a1a..ec9b611c5e 100644
--- a/cmake/QtJavaHelpers.cmake
+++ b/cmake/QtJavaHelpers.cmake
@@ -20,7 +20,7 @@ function(qt_internal_add_jar target)
endif()
set(CMAKE_JAVA_COMPILE_FLAGS -source "${javac_source_version}" -target "${javac_target_version}"
- -Xlint:unchecked -classpath "${QT_ANDROID_JAR}")
+ -Xlint:unchecked,cast,divzero,fallthrough,overrides,path -classpath "${QT_ANDROID_JAR}")
add_jar(${ARGV})
foreach(f IN LISTS arg_SOURCES)