diff options
author | Andreas Jaeger <aj@suse.de> | 2005-05-17 18:54:58 +0200 |
---|---|---|
committer | Andreas Jaeger <aj@gcc.gnu.org> | 2005-05-17 18:54:58 +0200 |
commit | 8f2a14065c60b1ac45c9019de43b73664bc7657d (patch) | |
tree | 26c34185de2f602483130274e16f43b5f87afc2c /libgfortran/io/format.c | |
parent | 2ba99e3da1e9ffbe2e764ad3686fab8d4bdbaeec (diff) | |
download | gcc-8f2a14065c60b1ac45c9019de43b73664bc7657d.tar.gz |
configure.ac: Add additional warning flags.
* configure.ac: Add additional warning flags.
* configure: Regenerate.
* io/write.c (calculate_G_format): Remove unused parameter.
(output_float): Remove unused parameter.
(write_float): Change callers.
(nml_write_obj): Avoid signed warning.
Make variable const to support -Wwrite-strings.
* io/unix.c (fd_alloc, mmap_open, mmap_sfree, mem_sfree,
mem_truncate): Mark argument as unused.
* io/unit.c (get_unit): Mark argument as unused.
(init_units): Avoid warning about signed comparision.
* io/transfer.c (next_record_r): Remove unused parameter.
(next_record_w): Remove unused parameter.
(next_record): Change callers.
(iolength_transfer): Mark arguments as unused.
* io/open.c: Add initializer.
* io/list_read.c (read_character): Mark argument as unused.
(nml_match_name): Add const to make compile with -Wwrite-strings.
* io/format.c: Add initializer.
From-SVN: r99839
Diffstat (limited to 'libgfortran/io/format.c')
-rw-r--r-- | libgfortran/io/format.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libgfortran/io/format.c b/libgfortran/io/format.c index 5c2d999cbd2..413a664542d 100644 --- a/libgfortran/io/format.c +++ b/libgfortran/io/format.c @@ -1,4 +1,5 @@ -/* Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. +/* Copyright (C) 2002, 2003, 2004, 2005 + Free Software Foundation, Inc. Contributed by Andy Vaught This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -54,7 +55,9 @@ static const char *error; static format_token saved_token; static int value, format_string_len, reversion_ok; -static fnode *saved_format, colon_node = { FMT_COLON }; +static fnode *saved_format; +static fnode colon_node = { FMT_COLON, 0, NULL, NULL, {{ 0, 0, 0 }}, 0, + NULL }; /* Error messages */ |