Skip to content

Commit 46c02a0

Browse files
j2objc-copybaracopybara-github
authored andcommitted
Fix gnu-folding-constant warning.
Xcode 26 beta 1 drops -Wno-gnu-folding-constant, which means at least some teams now get -Wgnu-folding-constant behavior. This CL fixes the one (known) violation in J2ObjC code. PiperOrigin-RevId: 772026725
1 parent b07762b commit 46c02a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jre_emul/Classes/jni.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ static jmethodID GetStaticMethodID(JNIEnv *env, jclass clazz, const char *name,
527527
}
528528

529529
#define ALLOC_JARGS(JARGS, NUM_ARGS) \
530-
const size_t _max_stack_args = 16; \
530+
enum { _max_stack_args = 16 }; \
531531
jvalue _stack_args[_max_stack_args]; \
532532
jvalue *JARGS; \
533533
jboolean _free_jargs = false; \
@@ -1127,4 +1127,4 @@ static jint GetJavaVM(JNIEnv *env, JavaVM **vm) {
11271127
}
11281128
*vm = jvm_;
11291129
return JNI_OK;
1130-
}
1130+
}

0 commit comments

Comments
 (0)