[alsa-devel] [PATCH 2/3] tinycompress: crec: fix function declaration

Vinod Koul vinod.koul at intel.com
Mon Jan 18 17:30:02 CET 2016


finish_record was not following ANSI standard for declaration as warned by
sparse

crec.c:193:26: warning: non-ANSI function declaration of function 'finish_record'

Signed-off-by: Vinod Koul <vinod.koul at intel.com>
---
 src/utils/crec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/utils/crec.c b/src/utils/crec.c
index e61e620d6490..6e8166d8f77b 100644
--- a/src/utils/crec.c
+++ b/src/utils/crec.c
@@ -190,7 +190,7 @@ static int print_time(struct compress *compress)
 	return 0;
 }
 
-static int finish_record()
+static int finish_record(void)
 {
 	struct wave_header header;
 	int ret;
-- 
1.9.1



More information about the Alsa-devel mailing list