From: Jan Hubicka Date: Wed, 2 Oct 2019 15:07:52 +0000 (+0000) Subject: module.c (load_commons): Initialize flags to 0 to silecne -Wmaybe-uninitialized warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=408b33fcc39bc1d8c12e41fa6149ed404b23f50f;p=gcc.git module.c (load_commons): Initialize flags to 0 to silecne -Wmaybe-uninitialized warning. * module.c (load_commons): Initialize flags to 0 to silecne -Wmaybe-uninitialized warning. (read_module): Likewise for n and comp_name. From-SVN: r276464 --- diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 8d7a2cf4c26..51c393a8e26 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2019-10-01 Jan Hubicka + + * module.c (load_commons): Initialize flags to 0 to silecne + -Wmaybe-uninitialized warning. + (read_module): Likewise for n and comp_name. + 2019-10-02 Tobias Burnus * dump-parse-tree.c (show_omp_clauses): Handle OMP_LIST_USE_DEVICE_ADDR. @@ -33,6 +39,7 @@ (lang_decl): Add new optional_arg field. (GFC_DECL_OPTIONAL_ARGUMENT): New macro. +>>>>>>> .r276463 2019-10-01 David Malcolm * error.c (gfc_diagnostic_starter): Clear the prefix before diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c index 533445e2655..1ca15352e7e 100644 --- a/gcc/fortran/module.c +++ b/gcc/fortran/module.c @@ -4745,7 +4745,7 @@ load_commons (void) while (peek_atom () != ATOM_RPAREN) { - int flags; + int flags = 0; char* label; mio_lparen (); mio_internal_string (name); @@ -5243,8 +5243,8 @@ read_module (void) for (c = sym->components; c; c = c->next) { pointer_info *p; - const char *comp_name; - int n; + const char *comp_name = NULL; + int n = 0; mio_lparen (); /* component opening. */ mio_integer (&n);