mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8196990: Resolve disabled warnings for libjli
Initialized uninitialzed data to avoid maybe-uninitialized warnings from gcc Reviewed-by: jlaskey
This commit is contained in:
parent
824b2d53ac
commit
79ac24439f
2 changed files with 2 additions and 1 deletions
|
@ -305,6 +305,8 @@ static JLI_List readArgFile(FILE *file) {
|
|||
|
||||
ctx.state = FIND_NEXT;
|
||||
ctx.parts = JLI_List_new(4);
|
||||
// initialize to avoid -Werror=maybe-uninitialized issues from gcc 7.3 onwards.
|
||||
ctx.quote_char = '"';
|
||||
|
||||
/* arbitrarily pick 8, seems to be a reasonable number of arguments */
|
||||
rv = JLI_List_new(8);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue