aboutsummaryrefslogtreecommitdiff
path: root/gcc/fix-header.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-10-17 20:26:29 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-10-17 20:26:29 +0000
commit79c9824ecb18f39f16051032db4be0b9bcf87cf1 (patch)
tree15838ddf2fc3b9a91598b7edfce12e6d16b40cd4 /gcc/fix-header.c
parenteb51666662345e5c95a7d3f474c76ea80666df23 (diff)
downloadgcc-79c9824ecb18f39f16051032db4be0b9bcf87cf1.zip
gcc-79c9824ecb18f39f16051032db4be0b9bcf87cf1.tar.gz
gcc-79c9824ecb18f39f16051032db4be0b9bcf87cf1.tar.bz2
Warning fixes:
* Makefile.in (flow.o): Depend on recog.h. * cpplib.h (directive_table): Add missing initializiers. (finclude): Change type of variable `bsize' to size_t. * cse.c (rtx_cost): Mark parameter `outer_code' with ATTRIBUTE_UNUSED. * dwarfout.h (dwarfout_label): Wrap prototype in macro RTX_CODE. * fix-header.c (lookup_std_proto): Cast the result of `strlen' to `int' when comparing against one. (cpp_file_line_for_message): Mark parameter `pfile' with ATTRIBUTE_UNUSED. (cpp_fatal): Mark parameter `pfile' with ATTRIBUTE_UNUSED. * flow.c: Include recog.h. (sbitmap_copy): Cast arguments 1 & 2 of `bcopy' to (PTR). * function.c (thread_prologue_and_epilogue_insns): Mark parameter `f' with ATTRIBUTE_UNUSED. (reposition_prologue_and_epilogue_notes): Likewise. * genopinit.c (gen_insn): Cast argument of ctype functions to `unsigned char'. * haifa-sched.c: Include recog.h. (blockage_range): Cast result of UNIT_BLOCKED macro to (int) when comparing against one. * libgcc2.a (__throw): Revert ATTRIBUTE_UNUSED change for now. * mips-tfile.c (parse_end): Cast the argument of ctype function to `unsigned char'. (parse_ent): Likewise. (parse_input): Likewise. * optabs.c (init_libfuncs): Likewise. * protoize.c (find_rightmost_formals_list): Likewise. * recog.h (const_double_operand): Fix typo in prototype. * tlink.c (scan_linker_output): Cast the argument of ctype function to `unsigned char'. * toplev.c (check_lang_option): Cast the result of `strlen' to `int' when comparing against one. From-SVN: r23155
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r--gcc/fix-header.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c
index ffeede5..e1a9956 100644
--- a/gcc/fix-header.c
+++ b/gcc/fix-header.c
@@ -397,7 +397,7 @@ lookup_std_proto (name, name_length)
if (hash_tab[i] == 0)
return NULL;
fn = &std_protos[hash_tab[i]];
- if (strlen (fn->fname) == name_length
+ if ((int) strlen (fn->fname) == name_length
&& strncmp (fn->fname, name, name_length) == 0)
return fn;
i = (i+1) % HASH_SIZE;
@@ -1326,7 +1326,7 @@ main (argc, argv)
void
cpp_file_line_for_message (pfile, filename, line, column)
- cpp_reader * pfile;
+ cpp_reader * pfile ATTRIBUTE_UNUSED;
char *filename;
int line, column;
{
@@ -1418,7 +1418,7 @@ fatal VPROTO ((const char *str, ...))
}
void
-cpp_fatal VPROTO ((cpp_reader * pfile, const char *str, ...))
+cpp_fatal VPROTO ((cpp_reader * pfile ATTRIBUTE_UNUSED, const char *str, ...))
{
#ifndef __STDC__
cpp_reader * pfile;