This is the mail archive of the gcc-patches@gcc.gnu.org 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]

gcc/tree.c, gcc/c-common.c warning removal


0703/gcc/c-common.c:2429: warning: function declaration isn't a prototype
0703/gcc/c-common.c:3220: warning: function declaration isn't a prototype
0703/gcc/tree.c:5620: warning: function declaration isn't a prototype

Note that I'm not yet copyright assigned. If this is too large to count
as a minor change, the cp/cp-tree.h change has no effect on removing the
warnings and could be removed.

2000-07-16  Rodney Brown  <RodneyBrown@pmsc.com>
	* c-common.h: prototypes for c_build_qualified_type, min_precision
		from c-tree.h
	* c-tree.h: delete protos for c_build_qualified_type, min_precision 
	* cp/cp-tree.h: delete protos already in c-common.h
		delete record_function_format proto (static in c-common.c)
	* tree.c: prototype for (static) finish_vector_type 

--- gcc/c-common.h.orig	Thu Jul 13 22:57:18 2000
+++ gcc/c-common.h	Tue Jul 11 22:24:35 2000
@@ -468,6 +468,8 @@ extern tree build_return_stmt           
 extern void c_expand_asm_operands		PARAMS ((tree, tree, tree, tree, int, const char *, int));
 extern int current_function_name_declared       PARAMS ((void));
 extern void set_current_function_name_declared  PARAMS ((int));
+extern tree c_build_qualified_type              PARAMS ((tree, int));
+extern unsigned int min_precision		PARAMS ((tree, int));
 
 /* These functions must be defined by each front-end which implements
    a variant of the C language.  They are used in c-common.c.  */
--- gcc/c-tree.h.orig	Tue Jul  4 22:46:02 2000
+++ gcc/c-tree.h	Mon Jul 10 20:15:34 2000
@@ -151,16 +151,12 @@ extern void c_parse_init			PARAMS ((void
 /* in c-aux-info.c */
 extern void gen_aux_info_record                 PARAMS ((tree, int, int, int));
 
-/* In c-common.c */
-extern unsigned int min_precision		PARAMS ((tree, int));
-
 /* in c-convert.c */
 extern tree convert                             PARAMS ((tree, tree));
 
 /* in c-decl.c */
 extern tree build_enumerator                    PARAMS ((tree, tree));
 /* Add qualifiers to a type, in the fashion for C.  */
-extern tree c_build_qualified_type              PARAMS ((tree, int));
 #define c_build_type_variant(TYPE, CONST_P, VOLATILE_P)		  \
   c_build_qualified_type (TYPE, 				  \
 			  ((CONST_P) ? TYPE_QUAL_CONST : 0) |	  \
--- gcc/cp/cp-tree.h.orig	Tue Jul 11 22:24:42 2000
+++ gcc/cp/cp-tree.h	Sun Jul 16 18:16:55 2000
@@ -3241,27 +3241,7 @@ extern int warn_multichar;
    flag_guiding_decls in do_friend. */
 extern int warn_nontemplate_friend;
 
-/* in c-common.c */
-extern void declare_function_name               PARAMS ((void));
-extern void decl_attributes                     PARAMS ((tree, tree, tree));
-extern void init_function_format_info		PARAMS ((void));
-extern void record_function_format		PARAMS ((tree, tree, int, int, int));
-extern void check_function_format		PARAMS ((tree, tree, tree));
-/* Print an error message for invalid operands to arith operation CODE.
-   NOP_EXPR is used as a special case (see truthvalue_conversion).  */
-extern void binary_op_error                     PARAMS ((enum tree_code));
 extern tree canonical_type_variant              PARAMS ((tree));
-extern void c_expand_expr_stmt                  PARAMS ((tree));
-/* Validate the expression after `case' and apply default promotions.  */
-extern tree check_case_value                    PARAMS ((tree));
-/* Concatenate a list of STRING_CST nodes into one STRING_CST.  */
-extern tree combine_strings                     PARAMS ((tree));
-extern void constant_expression_warning         PARAMS ((tree));
-extern tree convert_and_check			PARAMS ((tree, tree));
-extern void overflow_warning			PARAMS ((tree));
-extern void unsigned_conversion_warning		PARAMS ((tree, tree));
-extern void c_apply_type_quals_to_decl          PARAMS ((int, tree));
-extern unsigned int min_precision		PARAMS ((tree, int));
 
 /* Read the rest of the current #-directive line.  */
 #if USE_CPPLIB
--- gcc/tree.c.orig	Tue Jun 27 23:19:04 2000
+++ gcc/tree.c	Sat Jul  8 09:27:21 2000
@@ -277,8 +277,9 @@ static void append_random_chars PARAMS (
 static void mark_type_hash PARAMS ((void *));
 static int type_hash_eq PARAMS ((const void*, const void*));
 static unsigned int type_hash_hash PARAMS ((const void*));
-static void print_type_hash_statistics PARAMS((void));
-static int mark_hash_entry PARAMS((void **, void *));
+static void print_type_hash_statistics PARAMS ((void));
+static int mark_hash_entry PARAMS ((void **, void *));
+static void finish_vector_type PARAMS ((tree));
 
 /* If non-null, these are language-specific helper functions for
    unsave_expr_now.  If present, LANG_UNSAVE is called before its

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