shithub: libsamplerate

Download patch

ref: a62f6bca2c6330a5fea2459c89f0208d2aab4d4a
parent: 0e0d26e606025e6df90055475ce192e9e17d58f9
author: David Seifert <[email protected]>
date: Sat Jun 10 11:48:00 EDT 2017

Suppress -Wimplicit-fallthrough warnings

--- a/src/src_sinc.c
+++ b/src/src_sinc.c
@@ -900,24 +900,31 @@
 			{	default :
 					ch -- ;
 					left [ch] += icoeff * filter->buffer [data_index + ch] ;
+					/* Falls through. */
 				case 7 :
 					ch -- ;
 					left [ch] += icoeff * filter->buffer [data_index + ch] ;
+					/* Falls through. */
 				case 6 :
 					ch -- ;
 					left [ch] += icoeff * filter->buffer [data_index + ch] ;
+					/* Falls through. */
 				case 5 :
 					ch -- ;
 					left [ch] += icoeff * filter->buffer [data_index + ch] ;
+					/* Falls through. */
 				case 4 :
 					ch -- ;
 					left [ch] += icoeff * filter->buffer [data_index + ch] ;
+					/* Falls through. */
 				case 3 :
 					ch -- ;
 					left [ch] += icoeff * filter->buffer [data_index + ch] ;
+					/* Falls through. */
 				case 2 :
 					ch -- ;
 					left [ch] += icoeff * filter->buffer [data_index + ch] ;
+					/* Falls through. */
 				case 1 :
 					ch -- ;
 					left [ch] += icoeff * filter->buffer [data_index + ch] ;
@@ -950,24 +957,31 @@
 			{	default :
 					ch -- ;
 					right [ch] += icoeff * filter->buffer [data_index + ch] ;
+					/* Falls through. */
 				case 7 :
 					ch -- ;
 					right [ch] += icoeff * filter->buffer [data_index + ch] ;
+					/* Falls through. */
 				case 6 :
 					ch -- ;
 					right [ch] += icoeff * filter->buffer [data_index + ch] ;
+					/* Falls through. */
 				case 5 :
 					ch -- ;
 					right [ch] += icoeff * filter->buffer [data_index + ch] ;
+					/* Falls through. */
 				case 4 :
 					ch -- ;
 					right [ch] += icoeff * filter->buffer [data_index + ch] ;
+					/* Falls through. */
 				case 3 :
 					ch -- ;
 					right [ch] += icoeff * filter->buffer [data_index + ch] ;
+					/* Falls through. */
 				case 2 :
 					ch -- ;
 					right [ch] += icoeff * filter->buffer [data_index + ch] ;
+					/* Falls through. */
 				case 1 :
 					ch -- ;
 					right [ch] += icoeff * filter->buffer [data_index + ch] ;
@@ -987,24 +1001,31 @@
 		{	default :
 				ch -- ;
 				output [ch] = scale * (left [ch] + right [ch]) ;
+				/* Falls through. */
 			case 7 :
 				ch -- ;
 				output [ch] = scale * (left [ch] + right [ch]) ;
+				/* Falls through. */
 			case 6 :
 				ch -- ;
 				output [ch] = scale * (left [ch] + right [ch]) ;
+				/* Falls through. */
 			case 5 :
 				ch -- ;
 				output [ch] = scale * (left [ch] + right [ch]) ;
+				/* Falls through. */
 			case 4 :
 				ch -- ;
 				output [ch] = scale * (left [ch] + right [ch]) ;
+				/* Falls through. */
 			case 3 :
 				ch -- ;
 				output [ch] = scale * (left [ch] + right [ch]) ;
+				/* Falls through. */
 			case 2 :
 				ch -- ;
 				output [ch] = scale * (left [ch] + right [ch]) ;
+				/* Falls through. */
 			case 1 :
 				ch -- ;
 				output [ch] = scale * (left [ch] + right [ch]) ;