Patch: c++ warning regression, missing prototype

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Sat Sep 7 14:44:00 GMT 2002


Jason,

Your last patch:

 > 2002-09-05  Jason Merrill  <jason@redhat.com>
 > 
 > 	* 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  <ghazi@caip.rutgers.edu>

	* 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));



More information about the Gcc-patches mailing list