[patch 04/11] Autotool support for IBM RT Cases

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Subject return something in non-void functions
This fixes

libstats_test.c: In function 'stats_container_free':
../include/libstats.h:107: warning: control reaches end of non-void function
libstats_test.c: In function 'stats_container_init':
../include/libstats.h:102: warning: control reaches end of non-void function

Signed-off-by: Robert Schwebel <r.schwebel@xxxxxxxxxxxxxx>

 include/libstats.h |    4 ++++
 1 file changed, 4 insertions(+)

Index: include/libstats.h
===================================================================
--- include/libstats.h.orig
+++ include/libstats.h
@@ -99,11 +99,15 @@ int stats_container_init(stats_container
 	data->size = size;
 	data->records = (stats_record_t *)malloc(size*sizeof(stats_record_t));
 	memset(data->records, 0, size*sizeof(stats_record_t));
+
+        return 0;
 }
 
 int stats_container_free(stats_container_t *data)
 {
 	free(data->records);
+
+        return 0;
 }
 
 float stats_stddev(stats_container_t *data)

--
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9

-
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux