From 878a505853691d9dd4fbdcf461bf1a62c7cb0f36 Mon Sep 17 00:00:00 2001 From: Lars Schmertmann Date: Wed, 21 May 2025 08:56:54 +0200 Subject: [PATCH] Android: Enable all warnings on javac for user code too In addtion to 1cf03c974c433b7a5330b56bd9e519287fce6f7f we should also enable all warnings in the template as a recommendation for users. Change-Id: If60a3d9f3c1fd97b49ec7513f781bdfe1775d9d4 Reviewed-by: Assam Boudjelthia (cherry picked from commit 577f9ebfe6e6d7f5453fae7850055ded32b5d09f) Reviewed-by: Qt Cherry-pick Bot --- src/android/templates/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/src/android/templates/build.gradle b/src/android/templates/build.gradle index 05aeda79284..929f4119ff5 100644 --- a/src/android/templates/build.gradle +++ b/src/android/templates/build.gradle @@ -58,6 +58,7 @@ android { tasks.withType(JavaCompile) { options.incremental = true + options.compilerArgs += ['-Xlint:all'] } compileOptions {