diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-03-18 07:18:06 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-03-18 07:18:06 +0000 |
commit | 73439ee0233c6c0d202d6c7bea40a911b8c65af8 (patch) | |
tree | b006a2ceb24b3ae540a176142149eeeb7cec4bae /gcc/fix-header.c | |
parent | 1f3fed0b4c910ef49f0f1ee675d2c1606ab1c122 (diff) | |
download | gcc-73439ee0233c6c0d202d6c7bea40a911b8c65af8.tar.gz |
Fix more warnings...
* c-lang.c (finish_file): Wrap variable `void_list_node' with macro
test !ASM_OUTPUT_CONSTRUCTOR || !ASM_OUTPUT_DESTRUCTOR.
* calls.c (emit_call_1): Wrap variable `already_popped' with macro
test !ACCUMULATE_OUTGOING_ARGS.
* collect2.c (write_c_file_glob): Wrap function definition in
macro test !LD_INIT_SWITCH.
* combine.c (try_combine): Wrap variables `cc_use' and
`compare_mode' in macro test EXTRA_CC_MODES.
* cpplib.c (do_ident): Remove unused variable `len'.
(skip_if_group): Remove unused variables `at_beg_of_line' and
`after_ident'.
(cpp_get_token): Remove unused variable `dummy'.
* dbxout.c (scope_labelno): Move static variable definition inside
the one function scope where it is used.
(dbxout_function_end): Wrap prototype and definition in
macro test !NO_DBX_FUNCTION_END.
* dwarf2out.c (add_subscript_info): Wrap variable `dimension_number'
in macro test !MIPS_DEBUGGING_INFO.
* expr.c (expand_builtin_setjmp): Move declaration of variable `i'
into the scope where it is used. Wrap empty else-statement body
in braces.
* fix-header.c: Fix typo in comment.
(inf_skip_spaces): Cast results of INF_UNGET to (void).
(check_protection, main): Likewise.
* flow.c (find_basic_blocks_1): Remove dangling comment text.
* function.c (contains): Wrap prototype and definition in macro
test HAVE_prologue || HAVE_epilogue.
(fixup_var_refs_1): Remove unused variable `width'.
* gen-protos.c (main): Remove unused variable `optr'.
* haifa-sched.c (debug_control_flow): Remove unused variable `j'.
* libgcc2.c (__udiv_w_sdiv): Provide dummy return value of 0.
(__sjpopnthrow): Remove unused variable `jmpbuf'.
(__throw): Remove unused variable `val'.
* protoize.c: Check for a previously existing definition before
defining *_OK macros.
* scan-decls.c (scan_decls): Remove unused variable `old_written'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18654 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r-- | gcc/fix-header.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c index 3e235035060..53105ba1a16 100644 --- a/gcc/fix-header.c +++ b/gcc/fix-header.c @@ -1,5 +1,5 @@ /* fix-header.c - Make C header file suitable for C++. - Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1993, 94-97, 1998 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -26,7 +26,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ an argument list), and it is a "standard" function listed in the file sys-protos.h (and with a non-empty argument list), then the declaration is converted to a complete prototype by replacing - the empty parameter list with the argument lust from sys-protos.h. + the empty parameter list with the argument list from sys-protos.h. * The program can be given a list of (names of) required standard functions (such as fclose for stdio.h). If a required function @@ -898,7 +898,7 @@ inf_skip_spaces (c) c = INF_GET (); if (c != '*') { - INF_UNGET (c); + (void) INF_UNGET (c); return '/'; } c = INF_GET (); @@ -999,7 +999,7 @@ check_protection (ifndef_line, endif_line) return 0; protect_name = xstrdup (buf.base); - INF_UNGET (c); + (void) INF_UNGET (c); c = inf_read_upto (&buf, '\n'); if (c == EOF) return 0; @@ -1268,7 +1268,7 @@ main (argc, argv) if (isalpha (c) || c == '_') { c = inf_scan_ident (&buf, c); - INF_UNGET (c); + (void) INF_UNGET (c); fputs (buf.base, outf); fn = lookup_std_proto (buf.base, strlen (buf.base)); /* We only want to edit the declaration matching the one @@ -1289,7 +1289,7 @@ main (argc, argv) else { putc ('(', outf); - INF_UNGET (c); + (void) INF_UNGET (c); } } else |