diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-22 01:02:51 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-22 01:02:51 +0000 |
commit | 9ddf8721c702c499bc015e30ad7bde9675607b68 (patch) | |
tree | 845b96df5c1eb09fbf1a857272f510da30049ca8 /gcc/fixinc | |
parent | 8edef60c5f82540aed9efe2b5fbfd5afcd4385c7 (diff) | |
download | ppe42-gcc-9ddf8721c702c499bc015e30ad7bde9675607b68.tar.gz ppe42-gcc-9ddf8721c702c499bc015e30ad7bde9675607b68.zip |
* dwarf2out.c (lookup_filename): Fix printf format warning.
* system.h (fread_unlocked, fwrite_unlocked): Undef.
* fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
(fixincl.o-warn, gnu-regex.o-warn): New.
* fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
* fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
* fixinc/fixincl.c (process): Fix printf format warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61584 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc')
-rw-r--r-- | gcc/fixinc/Makefile.in | 7 | ||||
-rw-r--r-- | gcc/fixinc/fixfixes.c | 12 | ||||
-rw-r--r-- | gcc/fixinc/fixincl.c | 3 | ||||
-rw-r--r-- | gcc/fixinc/fixtests.c | 14 |
4 files changed, 21 insertions, 15 deletions
diff --git a/gcc/fixinc/Makefile.in b/gcc/fixinc/Makefile.in index ca2959238c7..cd4092fbc29 100644 --- a/gcc/fixinc/Makefile.in +++ b/gcc/fixinc/Makefile.in @@ -29,7 +29,7 @@ SHELL=@SHELL@ # in the kernel. So, we use `echo' instead. STAMP = echo timestamp > -FL_LIST = $(CFLAGS) $(CPPFLAGS) $(WARN_CFLAGS) +FL_LIST = $(CFLAGS) $(CPPFLAGS) $(WARN_CFLAGS) $($@-warn) FIXINC_DEFS = -DIN_GCC -DHAVE_CONFIG_H $(FL_LIST) $(INCLUDES) # Directory where sources are, from where we are. @@ -94,6 +94,11 @@ test-stamp : $(TESTOBJ) $(LIBERTY) $(AF): $(FIXOBJ) $(LIBERTY) $(CC) $(FIXINC_DEFS) $(LDFLAGS) -o $@ $(FIXOBJ) $(LIBERTY) +# String length warnings +fixincl.o-warn = -Wno-error +# Signed/Unsigned warnings, but in code pulled from upstream. +gnu-regex.o-warn = -Wno-error + $(ALLOBJ) : $(HDR) fixincl.o : fixincl.c $(srcdir)/fixincl.x fixtests.o : fixtests.c diff --git a/gcc/fixinc/fixfixes.c b/gcc/fixinc/fixfixes.c index 9c775b55425..30466bbb2c7 100644 --- a/gcc/fixinc/fixfixes.c +++ b/gcc/fixinc/fixfixes.c @@ -73,12 +73,12 @@ typedef struct { _FT_( "gnu_type", gnu_type_fix ) -#define FIX_PROC_HEAD( fix ) \ -static void fix PARAMS ((const char *, const char *, tFixDesc *)); /* avoid warning */ \ -static void fix ( filname, text, p_fixd ) \ - const char* filname; \ - const char* text; \ - tFixDesc* p_fixd; +#define FIX_PROC_HEAD( fix ) \ +static void fix PARAMS ((const char *, const char *, tFixDesc *)); \ +static void fix ( filname, text, p_fixd ) \ + const char* filname ATTRIBUTE_UNUSED; \ + const char* text ATTRIBUTE_UNUSED; \ + tFixDesc* p_fixd ATTRIBUTE_UNUSED; #ifdef NEED_PRINT_QUOTE /* diff --git a/gcc/fixinc/fixincl.c b/gcc/fixinc/fixincl.c index 36be7c7e64f..7c38637b1d0 100644 --- a/gcc/fixinc/fixincl.c +++ b/gcc/fixinc/fixincl.c @@ -1355,7 +1355,8 @@ process () process_ct++; #endif if (VLEVEL( VERB_PROGRESS ) && have_tty) - fprintf (stderr, "%6d %-50s \r", data_map_size, pz_curr_file ); + fprintf (stderr, "%6lu %-50s \r", + (unsigned long) data_map_size, pz_curr_file); # ifndef SEPARATE_FIX_PROC process_chain_head = NOPROCESS; diff --git a/gcc/fixinc/fixtests.c b/gcc/fixinc/fixtests.c index 40687cfc755..982fe335613 100644 --- a/gcc/fixinc/fixtests.c +++ b/gcc/fixinc/fixtests.c @@ -58,15 +58,15 @@ typedef struct { t_test_proc* test_proc; } test_entry_t; -#define FIX_TEST_TABLE \ - _FT_( "machine_name", machine_name_test ) \ +#define FIX_TEST_TABLE \ + _FT_( "machine_name", machine_name_test ) \ _FT_( "stdc_0_in_system_headers", stdc_0_in_system_headers_test ) -#define TEST_FOR_FIX_PROC_HEAD( test ) \ -static apply_fix_p_t test PARAMS(( tCC* file, tCC* text )); \ -static apply_fix_p_t test ( fname, text ) \ - tCC* fname; \ - tCC* text; +#define TEST_FOR_FIX_PROC_HEAD( test ) \ +static apply_fix_p_t test PARAMS(( tCC* file, tCC* text )); \ +static apply_fix_p_t test ( fname, text ) \ + tCC* fname ATTRIBUTE_UNUSED; \ + tCC* text ATTRIBUTE_UNUSED; TEST_FOR_FIX_PROC_HEAD( machine_name_test ) |