From: Alexandre Oliva Date: Thu, 5 Jan 2017 01:46:01 +0000 (+0000) Subject: [bootstrap-O3,fortran] add a NULL initializer to avoid a warning at -O3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=692216906ba1c7734183c4940122d5684c05141f;p=gcc.git [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 --- diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index ec209b2caf7..95c5279e48c 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,7 @@ +2017-01-04 Alexandre Oliva + + * module.c (load_omp_udrs): Initialize name. + 2017-01-02 Janne Blomqvist PR fortran/78534 diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c index d738cf4f2ff..b3b09672aca 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;