I discovered pfatal_with_name is only used inside gcc.c. Making it static as obvious.

nathan
--
Nathan Sidwell
2018-09-09  Nathan Sidwell  <nat...@acm.org>

	* gcc.h (pfatal_with_name): Don't declare here.
	* gcc.c (pfatal_with_name): Make static.

Index: gcc.c
===================================================================
--- gcc.c	(revision 264172)
+++ gcc.c	(working copy)
@@ -373,6 +373,7 @@ static int default_arg (const char *, in
 static void set_multilib_dir (void);
 static void print_multilib_info (void);
 static void perror_with_name (const char *);
+static void pfatal_with_name (const char *) ATTRIBUTE_NORETURN;
 static void display_help (void);
 static void add_preprocessor_option (const char *, int);
 static void add_assembler_option (const char *, int);
Index: gcc.h
===================================================================
--- gcc.h	(revision 264172)
+++ gcc.h	(working copy)
@@ -71,7 +71,6 @@ struct spec_function
 /* These are exported by gcc.c.  */
 extern int do_spec (const char *);
 extern void record_temp_file (const char *, int, int);
-extern void pfatal_with_name (const char *) ATTRIBUTE_NORETURN;
 extern void set_input (const char *);
 
 /* Spec files linked with gcc.c must provide definitions for these.  */

Reply via email to