Patchwork [Fortran,committed] Fix -Wold-style-definition warning in libgfortran

login
register
mail settings
Submitter Tobias Burnus
Date July 9, 2011, 9:22 p.m.
Message ID <4E18C6AD.5080001@net-b.de>
Download mbox | patch
Permalink /patch/104027/
State New
Headers show

Comments

Tobias Burnus - July 9, 2011, 9:22 p.m.
When looking at the build log, I saw a -Wold-style-definition warning in 
libgfortran.

I have committed fix as obvious (Rev. 176109).

Tobias

Patch

Index: libgfortran/runtime/error.c
===================================================================
--- libgfortran/runtime/error.c	(Revision 176108)
+++ libgfortran/runtime/error.c	(Arbeitskopie)
@@ -164,7 +164,7 @@  st_printf (const char * format, ...)
    core.  */
 
 void
-sys_abort ()
+sys_abort (void)
 {
   /* If backtracing is enabled, print backtrace and disable signal
      handler for ABRT.  */
Index: libgfortran/ChangeLog
===================================================================
--- libgfortran/ChangeLog	(Revision 176108)
+++ libgfortran/ChangeLog	(Arbeitskopie)
@@ -1,4 +1,9 @@ 
 2011-07-09  Tobias Burnus  <burnus@net-b.de>
+
+	* runtime/error.c (sys_abort): Change argument list
+	from "()" to "(void)".
+
+2011-07-09  Tobias Burnus  <burnus@net-b.de>
 	    Daniel Carrera  <dcarrera@gmail.com>
 
 	* caf/mpi.c (runtime_error): New function.