shithub: libsamplerate

Download patch

ref: d4f1dc2eeaabe76405426dae1d79a186259f41ca
parent: cc3f16136d1a5140cb19770bcdae29d2dd4f50b3
author: Erik de Castro Lopo <erikd@mega-nerd.com>
date: Sat Feb 14 12:54:18 EST 2009

src/common.h : Warn unused.

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,14 @@
+2009-02-14  Erik de Castro Lopo  <erikd AT mega-nerd DOT com>
+
+    * src/common.h src/samplerate.c
+    Add new error value SRC_ERR_SINC_PREPARE_DATA_BAD_LEN.
+
+    * src/common.h
+    Add WARN_UNUSED macro.
+
 2009-02-13  Erik de Castro Lopo  <erikd AT mega-nerd DOT com>
 
-    *  src/common.h src/samplerate.c
+    * src/common.h src/samplerate.c
     Fix SRC_ERR_BAD_SRC_RATIO error string. Thanks David Cournapeau.
 
 2009-01-30  Erik de Castro Lopo  <erikd AT mega-nerd DOT com>
--- a/src/common.h
+++ b/src/common.h
@@ -46,6 +46,12 @@
 
 #define	MAKE_MAGIC(a,b,c,d,e,f)	((a) + ((b) << 4) + ((c) << 8) + ((d) << 12) + ((e) << 16) + ((f) << 20))
 
+#ifdef __GNUC__
+#	define WARN_UNUSED	__attribute__ ((warn_unused_result))
+#else
+#	define WARN_UNUSED
+#endif
+
 
 #include "samplerate.h"