diff --git a/indent-2.2.9-explicits.patch b/indent-2.2.9-explicits.patch new file mode 100644 index 0000000..629e910 --- /dev/null +++ b/indent-2.2.9-explicits.patch @@ -0,0 +1,73 @@ +diff -Burp indent-2.2.9/man/texinfo2man.c indent-2.2.9-explicits/man/texinfo2man.c +--- indent-2.2.9/man/texinfo2man.c 2006-01-18 18:18:00.000000000 +0100 ++++ indent-2.2.9-explicits/man/texinfo2man.c 2006-01-18 18:15:14.000000000 +0100 +@@ -163,6 +163,7 @@ int start_line[256]; + + static char value_updated[64], value_edition[64], value_version[64]; + ++void + process_texi (FILE * in) + { + char buf[1024]; +diff -Burp indent-2.2.9/src/indent.c indent-2.2.9-explicits/src/indent.c +--- indent-2.2.9/src/indent.c 2006-01-18 18:17:57.000000000 +0100 ++++ indent-2.2.9-explicits/src/indent.c 2006-01-18 18:16:50.000000000 +0100 +@@ -373,8 +373,6 @@ static void handle_token_lparen( + BOOLEAN * sp_sw, + int * dec_ind) + { +- char lparen = *token; +- + /* Braces in initializer lists should be put on new lines. This is + * necessary so that -gnu does not cause things like char + * *this_is_a_string_array[] = { "foo", "this_string_does_not_fit", +@@ -3058,7 +3056,6 @@ int main ( + int argc, + char ** argv) + { +- int i; + char *profile_pathname = 0; + BOOLEAN using_stdin = false; + exit_values_ty exit_status; +diff -Burp indent-2.2.9/src/io.h indent-2.2.9-explicits/src/io.h +--- indent-2.2.9/src/io.h 2002-08-04 19:08:41.000000000 +0200 ++++ indent-2.2.9-explicits/src/io.h 2006-01-18 18:12:56.000000000 +0100 +@@ -73,5 +73,6 @@ extern void fill_buffer (void); + extern int compute_code_target (int paren_targ); + extern int compute_label_target (void); + extern void skip_buffered_space(void); ++extern void dump_line (int force_nl, int *paren_targ); + + #endif /* INDENT_IO_H */ +diff -Burp indent-2.2.9/src/output.c indent-2.2.9-explicits/src/output.c +--- indent-2.2.9/src/output.c 2006-01-18 18:18:00.000000000 +0100 ++++ indent-2.2.9-explicits/src/output.c 2006-01-18 18:14:02.000000000 +0100 +@@ -15,6 +15,7 @@ + #include + #include + #include ++#include + #include + + #include "indent.h" +@@ -1207,7 +1208,7 @@ extern void close_output( + } + } + +-extern inhibit_indenting( ++extern void inhibit_indenting( + BOOLEAN flag) + { + inhibited = flag; +diff -Burp indent-2.2.9/src/output.h indent-2.2.9-explicits/src/output.h +--- indent-2.2.9/src/output.h 2002-08-04 19:08:41.000000000 +0200 ++++ indent-2.2.9-explicits/src/output.h 2006-01-18 17:55:07.000000000 +0100 +@@ -47,7 +47,7 @@ extern void close_output( + struct stat * file_stats, + const char * filename); + +-extern inhibit_indenting( ++extern void inhibit_indenting( + BOOLEAN flag); + + diff --git a/indent.spec b/indent.spec index bed5911..106cf37 100644 --- a/indent.spec +++ b/indent.spec @@ -1,13 +1,14 @@ Summary: A GNU program for formatting C code. Name: indent Version: 2.2.9 -Release: 8.1 +Release: 9 License: GPL Group: Applications/Text URL: http://www.gnu.org/software/indent/ Source: ftp://ftp.gnu.org/pub/gnu/indent/indent-%{version}.tar.gz Patch: indent-2.2.9-fix.patch Patch2: indent-2.2.9-gcc4.patch +Patch3: indent-2.2.9-explicits.patch Prereq: /sbin/install-info BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -24,6 +25,7 @@ you want a program to format your code. %setup -q %patch -p1 %patch2 -p1 +%patch3 -p1 %build @@ -62,6 +64,10 @@ fi %changelog +* Wed Jan 18 2006 Petr Machata +- Silenting some warnings, voidifying some functions that were + implicitly int but didn't actually return anything. (#114376) + * Fri Dec 09 2005 Jesse Keating - rebuilt