diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2017-01-05 01:46:01 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2017-01-05 01:46:01 +0000 |
commit | 692216906ba1c7734183c4940122d5684c05141f (patch) | |
tree | 0a8d753e6d9c3946ada73645d502f5da923c431e /gcc/fortran/module.c | |
parent | d61d5fcd7f68b623c693b241d0d50144e2bd443f (diff) | |
download | gcc-692216906ba1c7734183c4940122d5684c05141f.zip gcc-692216906ba1c7734183c4940122d5684c05141f.tar.gz gcc-692216906ba1c7734183c4940122d5684c05141f.tar.bz2 |
[bootstrap-O3,fortran] add a NULL initializer to avoid a warning at -O3
Building with the bootstrap-O3 configuration option fails to compile
fortran/module.c due to an AFAICT false-positive warning about an
uninitialized use of a variable.
This patch adds a dummy initializer to silence it.
for gcc/fortran/ChangeLog
* module.c (load_omp_udrs): Initialize name.
From-SVN: r244087
Diffstat (limited to 'gcc/fortran/module.c')
-rw-r--r-- | gcc/fortran/module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c index d738cf4..b3b0967 100644 --- a/gcc/fortran/module.c +++ b/gcc/fortran/module.c @@ -4702,7 +4702,7 @@ load_omp_udrs (void) mio_lparen (); while (peek_atom () != ATOM_RPAREN) { - const char *name, *newname; + const char *name = NULL, *newname; char *altname; gfc_typespec ts; gfc_symtree *st; |