This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: c++ warning regression, missing prototype


Your last patch:

 > 2002-09-05  Jason Merrill  <>
 > 	* typeck2.c (add_exception_specifier): Only pedwarn for an
 > 	incomplete type.
 > 	(require_complete_eh_spec_types): New fn.
 > 	(cxx_incomplete_type_diagnostic): Also support pedwarning.
 > 	* typeck.c (complete_type_or_diagnostic): Likewise.
 > 	* call.c (build_call): Call require_complete_eh_spec_types.
 > 	* rtti.c (get_pseudo_ti_desc): Give an error rather than aborting
 > 	on an incomplete type.

was missing a prototype and introduced two new warnings:

 > cp/call.c:388: warning: implicit declaration of function `require_complete_eh_spec_types'
 > cp/typeck2.c:1449: warning: function declaration isn't a prototype

Ok to install?

2002-09-07  Kaveh R. Ghazi  <>

	* cp-tree.h (require_complete_eh_spec_types): Add prototype.

diff -rup orig/egcc-CVS20020907/gcc/cp/cp-tree.h egcc-CVS20020907/gcc/cp/cp-tree.h
--- orig/egcc-CVS20020907/gcc/cp/cp-tree.h	2002-08-25 07:00:22.000000000 -0400
+++ egcc-CVS20020907/gcc/cp/cp-tree.h	2002-09-07 17:33:38.947723523 -0400
@@ -4322,6 +4322,7 @@ extern tree check_return_expr           
 extern tree build_ptrmemfunc_access_expr       (tree, tree);
 /* in typeck2.c */
+extern void require_complete_eh_spec_types	PARAMS ((tree, tree));
 extern void cxx_incomplete_type_diagnostic	PARAMS ((tree, tree, int));
 #undef cxx_incomplete_type_error
 extern void cxx_incomplete_type_error		PARAMS ((tree, tree));

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]