wineandroid: Enable some Java compiler warnings.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2018-11-26 16:41:33 +01:00
parent 61888e0012
commit 4e21bb44e4
2 changed files with 6 additions and 1 deletions

View File

@ -729,7 +729,7 @@ public boolean dispatchKeyEvent( KeyEvent event )
{ {
Log.i( LOGTAG, String.format( "view key event win %08x action %d keycode %d (%s)", Log.i( LOGTAG, String.format( "view key event win %08x action %d keycode %d (%s)",
window.hwnd, event.getAction(), event.getKeyCode(), window.hwnd, event.getAction(), event.getKeyCode(),
event.keyCodeToString( event.getKeyCode() )));; KeyEvent.keyCodeToString( event.getKeyCode() )));;
boolean ret = wine_keyboard_event( window.hwnd, event.getAction(), event.getKeyCode(), boolean ret = wine_keyboard_event( window.hwnd, event.getAction(), event.getKeyCode(),
event.getMetaState() ); event.getMetaState() );
if (!ret) ret = super.dispatchKeyEvent(event); if (!ret) ret = super.dispatchKeyEvent(event);

View File

@ -56,6 +56,11 @@ tasks.whenTaskAdded { t ->
} }
} }
tasks.withType(JavaCompile)
{
options.compilerArgs << "-Xlint"
}
android android
{ {
compileSdkVersion 25 compileSdkVersion 25