aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/module.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@gcc.gnu.org>2019-10-02 15:07:52 +0000
committerJan Hubicka <hubicka@gcc.gnu.org>2019-10-02 15:07:52 +0000
commit408b33fcc39bc1d8c12e41fa6149ed404b23f50f (patch)
tree4c1f0a1b3db630ccb649b343f20503e77aaee1e8 /gcc/fortran/module.c
parent709310e7a4668cf9fad232bc970021eba07e9325 (diff)
downloadgcc-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.c6
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);