diff options
author | Pekka Enberg <penberg@kernel.org> | 2013-06-06 19:47:16 +0300 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2013-06-06 19:47:16 +0300 |
commit | 0e5cb9d1b86b2287582df143f63a0ae374360116 (patch) | |
tree | bcb1a30a10795d37931c3b98745fb0d87d656714 | |
parent | 30c066390616aec5a856b8857634e0dfad65c327 (diff) | |
download | jato-0e5cb9d1b86b2287582df143f63a0ae374360116.tar.gz |
vm: Fix old style declarations
Spotted by GCC:
vm/jni-interface.c:1676:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]
vm/verifier.c:674:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]
Signed-off-by: Pekka Enberg <penberg@kernel.org>
-rw-r--r-- | vm/jni-interface.c | 2 | ||||
-rw-r--r-- | vm/verifier.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vm/jni-interface.c b/vm/jni-interface.c index 7115a204..49d2f1c8 100644 --- a/vm/jni-interface.c +++ b/vm/jni-interface.c @@ -1673,7 +1673,7 @@ static jobjectRefType JNI_GetObjectRefType(JNIEnv* env, jobject obj) return 0; } -const static struct JNINativeInterface_ defaultJNIEnv = { +static const struct JNINativeInterface_ defaultJNIEnv = { DEFINE_JNI_FUNCTION(GetVersion), DEFINE_JNI_FUNCTION(DefineClass), DEFINE_JNI_FUNCTION(FindClass), diff --git a/vm/verifier.c b/vm/verifier.c index 5df8e07a..e7931954 100644 --- a/vm/verifier.c +++ b/vm/verifier.c @@ -671,7 +671,7 @@ static int verify_exception_table(struct cafebabe_code_attribute *ca, struct ver return 0; } -const static char *verify_error_string = "No error"; +static const char *verify_error_string = "No error"; static void verify_error(int err, unsigned long pos, struct verifier_context *vrf) { |