From 9826e4e38b8cfa12d292fb68903af2cc904f6d67 Mon Sep 17 00:00:00 2001 From: Assam Boudjelthia Date: Wed, 15 Nov 2023 11:25:33 +0200 Subject: [PATCH] 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 --- cmake/QtJavaHelpers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/QtJavaHelpers.cmake b/cmake/QtJavaHelpers.cmake index 6964319a1ad..ec9b611c5e6 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)