diff options
author | Jan Hubicka <hubicka@gcc.gnu.org> | 2019-10-02 15:07:52 +0000 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2019-10-02 15:07:52 +0000 |
commit | 408b33fcc39bc1d8c12e41fa6149ed404b23f50f (patch) | |
tree | 4c1f0a1b3db630ccb649b343f20503e77aaee1e8 /gcc/fortran/module.c | |
parent | 709310e7a4668cf9fad232bc970021eba07e9325 (diff) | |
download | gcc-408b33fcc39bc1d8c12e41fa6149ed404b23f50f.zip gcc-408b33fcc39bc1d8c12e41fa6149ed404b23f50f.tar.gz gcc-408b33fcc39bc1d8c12e41fa6149ed404b23f50f.tar.bz2 |
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
Diffstat (limited to 'gcc/fortran/module.c')
-rw-r--r-- | gcc/fortran/module.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c index 533445e..1ca1535 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); |