avdevice/internal: add av_warn_unused_result
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Fri, 16 Oct 2015 01:49:30 +0000 (21:49 -0400)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Fri, 16 Oct 2015 21:28:40 +0000 (17:28 -0400)
This does not trigger any warnings but adds robustness.

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

index 3cd1b06..e222cf2 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "libavformat/avformat.h"
 
+av_warn_unused_result
 int ff_alloc_input_device_context(struct AVFormatContext **avctx, struct AVInputFormat *iformat,
                                   const char *format);