Clean up more cipher code and make it -Wall + -Werror clean

This commit is contained in:
Andrew Steinborn
2020-09-16 00:07:52 -04:00
parent a49a77a7ef
commit bb31226e09
4 changed files with 25 additions and 13 deletions

View File

@@ -53,5 +53,9 @@ Java_com_velocitypowered_natives_compression_NativeZlibInflate_process(JNIEnv *e
// These cases are the same for us. We expect the full uncompressed size to be known.
throwException(env, "java/util/zip/DataFormatException", "uncompressed size is inaccurate");
return JNI_FALSE;
default:
// Unhandled case
throwException(env, "java/util/zip/DataFormatException", "unknown libdeflate return code");
return JNI_FALSE;
}
}