Commit 408b33fc by Jan Hubicka

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
parent 709310e7
2019-10-01 Jan Hubicka <jh@suse.cz>
* 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 <tobias@codesourcery.com> 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
* dump-parse-tree.c (show_omp_clauses): Handle OMP_LIST_USE_DEVICE_ADDR. * dump-parse-tree.c (show_omp_clauses): Handle OMP_LIST_USE_DEVICE_ADDR.
...@@ -33,6 +39,7 @@ ...@@ -33,6 +39,7 @@
(lang_decl): Add new optional_arg field. (lang_decl): Add new optional_arg field.
(GFC_DECL_OPTIONAL_ARGUMENT): New macro. (GFC_DECL_OPTIONAL_ARGUMENT): New macro.
>>>>>>> .r276463
2019-10-01 David Malcolm <dmalcolm@redhat.com> 2019-10-01 David Malcolm <dmalcolm@redhat.com>
* error.c (gfc_diagnostic_starter): Clear the prefix before * error.c (gfc_diagnostic_starter): Clear the prefix before
......
...@@ -4745,7 +4745,7 @@ load_commons (void) ...@@ -4745,7 +4745,7 @@ load_commons (void)
while (peek_atom () != ATOM_RPAREN) while (peek_atom () != ATOM_RPAREN)
{ {
int flags; int flags = 0;
char* label; char* label;
mio_lparen (); mio_lparen ();
mio_internal_string (name); mio_internal_string (name);
...@@ -5243,8 +5243,8 @@ read_module (void) ...@@ -5243,8 +5243,8 @@ read_module (void)
for (c = sym->components; c; c = c->next) for (c = sym->components; c; c = c->next)
{ {
pointer_info *p; pointer_info *p;
const char *comp_name; const char *comp_name = NULL;
int n; int n = 0;
mio_lparen (); /* component opening. */ mio_lparen (); /* component opening. */
mio_integer (&n); mio_integer (&n);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment