]> git.alsa-project.org Git - alsa-lib.git/commitdiff
topology: parser: Add missing return value to snd_tplg_set_manifest_data()
authorTakashi Iwai <tiwai@suse.de>
Tue, 8 Sep 2015 20:13:50 +0000 (22:13 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 8 Sep 2015 20:14:19 +0000 (22:14 +0200)
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@suse.de>
src/topology/parser.c

index ca7de0689cea1efdbbd69423179e460c29f83f0e..44c6146b22f28e7e98cb30be08f1e6f691dd550d 100644 (file)
@@ -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)