From ccc3ee663ba397e4c69f0f1673fd1795002c4abf Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 14 Oct 2022 23:00:11 +0200 Subject: [PATCH] java/File: remove assertions to work around -Wtautological-pointer-compare --- src/java/File.cxx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/java/File.cxx b/src/java/File.cxx index 4866953e3..2e50bca9e 100644 --- a/src/java/File.cxx +++ b/src/java/File.cxx @@ -49,9 +49,6 @@ Java::File::Initialise(JNIEnv *env) noexcept AllocatedPath Java::File::ToAbsolutePath(JNIEnv *env, jobject _file) noexcept { - assert(env != nullptr); - assert(_file != nullptr); - LocalObject file(env, _file); const jstring path = GetAbsolutePath(env, file);