aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/method.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-05-19 07:19:17 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-05-19 07:19:17 +0000
commit77dc0938f72adc4ef75f164fe290deeb236b32eb (patch)
treeb8d3defbc89a227144e054b7b36e1da85937bbb9 /gcc/cp/method.c
parent12c45d894bb083f9a735c121a371d3b404302d82 (diff)
downloadgcc-77dc0938f72adc4ef75f164fe290deeb236b32eb.zip
gcc-77dc0938f72adc4ef75f164fe290deeb236b32eb.tar.gz
gcc-77dc0938f72adc4ef75f164fe290deeb236b32eb.tar.bz2
Warning fixes:
* Makefile.in (parse.o): Depend on toplev.h. * class.c (typecode_p): Remove prototype and definition. * cp-tree.h (currently_open_class, is_empty_class, member_p): Add prototype. * decl.c (push_overloaded_decl_top_level): Remove prototype and definition. * errfn.c (cp_error): Cast function pointer `error' to (errorfn *) in call to `cp_thing'. (cp_warning): Likewise for function pointer `warning'. * except.c (do_function_call): Remove prototype and definition. (call_eh_info): Wrap variable `t1' in macro NEW_EH_MODEL. * method.c (is_java_type): Add prototype and make it static. * parse.y: Include toplev.h. * pt.c (type_unification): Remove unused variable `arg'. (instantiate_decl): likewise for `save_ti'. * tree.c (propagate_binfo_offsets): Likewise for `base_binfos'. From-SVN: r19866
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r--gcc/cp/method.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index 5ebcac9..5cf4133 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -83,6 +83,7 @@ static int issue_ktype PROTO((tree));
static void build_overload_scope_ref PROTO((tree));
static void build_mangled_template_parm_index PROTO((char *, tree));
static int check_btype PROTO((tree));
+static int is_java_type PROTO((tree));
# define OB_INIT() (scratch_firstobj ? (obstack_free (&scratch_obstack, scratch_firstobj), 0) : 0)
# define OB_PUTC(C) (obstack_1grow (&scratch_obstack, (C)))
@@ -1117,7 +1118,7 @@ process_modifiers (parmtype)
/* True iff TYPE was declared as a "Java" type (inside extern "Java"). */
-int
+static int
is_java_type (type)
tree type;
{