packages/libs/classpath/patches/020-fix-statement-may-fall-through.patch
Guo Li d0e0385f11 classpath: fix this statement may fall through
gnu_java_math_GMP.c:1135:13: error: this statement may fall through [-Werror=implicit-fallthrough=]
         res = mpz_popcount (_this);
         ~~~~^~~~~~~~~~~~~~~~~~~~~~
gnu_java_math_GMP.c:1136:7: note: here
       default:
       ^~~~~~~

Signed-off-by: Guo Li <uxgood.org@gmail.com>
2018-09-06 02:07:47 +08:00

10 lines
362 B
Diff

--- a/native/jni/java-math/gnu_java_math_GMP.c
+++ b/native/jni/java-math/gnu_java_math_GMP.c
@@ -1132,6 +1132,7 @@
break;
case 1:
res = mpz_popcount (_this);
+ __attribute__((fallthrough));
default:
JCL_ThrowException (env, "java/lang/Error",
"Unexpected sign value for a native MPI");