diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1998-10-17 20:26:29 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1998-10-17 20:26:29 +0000 |
commit | 79c9824ecb18f39f16051032db4be0b9bcf87cf1 (patch) | |
tree | 15838ddf2fc3b9a91598b7edfce12e6d16b40cd4 /gcc/cpplib.c | |
parent | eb51666662345e5c95a7d3f474c76ea80666df23 (diff) | |
download | gcc-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/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 016b160..b45e014 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -377,7 +377,7 @@ static int do_warning PARAMS ((cpp_reader *, struct directive *, U_CHAR *, U_CHA The initialize_builtins function assumes #define is the very first. */ static struct directive directive_table[] = { - { 6, do_define, "define", T_DEFINE}, + { 6, do_define, "define", T_DEFINE, 0}, { 5, do_xifdef, "ifdef", T_IFDEF, 1}, { 6, do_xifdef, "ifndef", T_IFNDEF, 1}, { 7, do_include, "include", T_INCLUDE, 1}, @@ -387,18 +387,18 @@ static struct directive directive_table[] = { { 4, do_else, "else", T_ELSE, 1}, { 2, do_if, "if", T_IF, 1}, { 4, do_elif, "elif", T_ELIF, 1}, - { 5, do_undef, "undef", T_UNDEF}, - { 5, do_error, "error", T_ERROR}, - { 7, do_warning, "warning", T_WARNING}, - { 6, do_pragma, "pragma", T_PRAGMA}, + { 5, do_undef, "undef", T_UNDEF, 0}, + { 5, do_error, "error", T_ERROR, 0}, + { 7, do_warning, "warning", T_WARNING, 0}, + { 6, do_pragma, "pragma", T_PRAGMA, 0}, { 4, do_line, "line", T_LINE, 1}, { 5, do_ident, "ident", T_IDENT, 1}, #ifdef SCCS_DIRECTIVE - { 4, do_sccs, "sccs", T_SCCS}, + { 4, do_sccs, "sccs", T_SCCS, 0}, #endif { 6, do_assert, "assert", T_ASSERT, 1}, { 8, do_unassert, "unassert", T_UNASSERT, 1}, - { -1, 0, "", T_UNUSED}, + { -1, 0, "", T_UNUSED, 0}, }; /* table to tell if char can be part of a C identifier. */ @@ -5642,7 +5642,7 @@ finclude (pfile, f, fname, system_header_p, dirptr) First read the entire file into heap and copy them into buffer on stack. */ - int bsize = 2000; + size_t bsize = 2000; st_size = 0; fp->buf = (U_CHAR *) xmalloc (bsize + 2); |