swscale/swscale: add av_warn_unused_result to sws_init_context
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Fri, 16 Oct 2015 01:44:22 +0000 (21:44 -0400)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Fri, 16 Oct 2015 21:18:21 +0000 (17:18 -0400)
This should not trigger any warnings; but adds robustness.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
libswscale/swscale.h

index ff3f630..da9dd2e 100644 (file)
@@ -150,6 +150,7 @@ struct SwsContext *sws_alloc_context(void);
  * @return zero or positive value on success, a negative value on
  * error
  */
+av_warn_unused_result
 int sws_init_context(struct SwsContext *sws_context, SwsFilter *srcFilter, SwsFilter *dstFilter);
 
 /**