[alsa-devel] [PATCH lib 4/5] topology: parser: Add missing return value to snd_tplg_set_manifest_data()

Takashi Iwai tiwai at suse.de
Tue Sep 8 22:21:40 CEST 2015


Spotted by gcc warning:
  parser.c: In function ‘snd_tplg_set_manifest_data’:
  parser.c:361:1: warning: control reaches end of non-void function [-Wreturn-type]
   }
   ^

Signed-off-by: Takashi Iwai <tiwai at suse.de>
---
 src/topology/parser.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/topology/parser.c b/src/topology/parser.c
index ca7de0689cea..44c6146b22f2 100644
--- a/src/topology/parser.c
+++ b/src/topology/parser.c
@@ -358,6 +358,7 @@ int snd_tplg_set_manifest_data(snd_tplg_t *tplg, const void *data, int len)
 {
 	tplg->manifest.priv.size = len;
 	tplg->manifest_pdata = data;
+	return 0;
 }
 
 void snd_tplg_verbose(snd_tplg_t *tplg, int verbose)
-- 
2.5.1



More information about the Alsa-devel mailing list