8080991: Compilation error with recent clang in java.base/share/native/launcher/main.c: error: comparison of array 'const_jargs' not equal to a null pointer is always true
Reviewed-by: ksrini, ddehaven
This commit is contained in:
parent
6c70d53d16
commit
6329a86bca
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -46,6 +46,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#ifdef JAVA_ARGS
|
#ifdef JAVA_ARGS
|
||||||
|
#define HAS_JAVA_ARGS JNI_TRUE
|
||||||
static const char* const_progname = "java";
|
static const char* const_progname = "java";
|
||||||
static const char* const_jargs[] = JAVA_ARGS;
|
static const char* const_jargs[] = JAVA_ARGS;
|
||||||
/*
|
/*
|
||||||
@ -58,6 +59,7 @@ static const char* const_jargs[] = JAVA_ARGS;
|
|||||||
#endif /* APP_CLASSPATH */
|
#endif /* APP_CLASSPATH */
|
||||||
static const char* const_appclasspath[] = APP_CLASSPATH;
|
static const char* const_appclasspath[] = APP_CLASSPATH;
|
||||||
#else /* !JAVA_ARGS */
|
#else /* !JAVA_ARGS */
|
||||||
|
#define HAS_JAVA_ARGS JNI_FALSE
|
||||||
#ifdef PROGNAME
|
#ifdef PROGNAME
|
||||||
static const char* const_progname = PROGNAME;
|
static const char* const_progname = PROGNAME;
|
||||||
#else
|
#else
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1995, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -129,6 +129,6 @@ main(int argc, char **argv)
|
|||||||
DOT_VERSION,
|
DOT_VERSION,
|
||||||
(const_progname != NULL) ? const_progname : *margv,
|
(const_progname != NULL) ? const_progname : *margv,
|
||||||
(const_launcher != NULL) ? const_launcher : *margv,
|
(const_launcher != NULL) ? const_launcher : *margv,
|
||||||
(const_jargs != NULL) ? JNI_TRUE : JNI_FALSE,
|
HAS_JAVA_ARGS,
|
||||||
const_cpwildcard, const_javaw, const_ergo_class);
|
const_cpwildcard, const_javaw, const_ergo_class);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user