rpms/indent/devel indent-2.2.9-explicits.patch, NONE, 1.1 indent.spec, 1.15, 1.16

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Jan 18 17:35:50 UTC 2006


Author: pmachata

Update of /cvs/dist/rpms/indent/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv24526

Modified Files:
	indent.spec 
Added Files:
	indent-2.2.9-explicits.patch 
Log Message:
Silenting some warnings, voidifying some functions that
were implicitly int but didn't actually return anything (#114376).


indent-2.2.9-explicits.patch:
 man/texinfo2man.c |    1 +
 src/indent.c      |    3 ---
 src/io.h          |    1 +
 src/output.c      |    3 ++-
 src/output.h      |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

--- NEW FILE indent-2.2.9-explicits.patch ---
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 <stdlib.h>
 #include <sys/types.h>
 #include <utime.h>
+#include <time.h>
 #include <sys/stat.h>
 
 #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);
 
 


Index: indent.spec
===================================================================
RCS file: /cvs/dist/rpms/indent/devel/indent.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- indent.spec	9 Dec 2005 22:40:59 -0000	1.15
+++ indent.spec	18 Jan 2006 17:35:44 -0000	1.16
@@ -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 @@
 %setup -q
 %patch -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 
@@ -62,6 +64,10 @@
 
 
 %changelog
+* Wed Jan 18 2006 Petr Machata <pmachata at redhat.com>
+- Silenting some warnings, voidifying some functions that were
+  implicitly int but didn't actually return anything. (#114376)
+
 * Fri Dec 09 2005 Jesse Keating <jkeating at redhat.com>
 - rebuilt
 




More information about the fedora-cvs-commits mailing list