ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanaga...@gmail.com> | Thu Oct 
15 17:49:48 2015 -0400| [31ed189d5c0583cac118197689b4f3766aa146cb] | committer: 
Ganesh Ajjanagadde

avutil/internal: add av_warn_unused_result to avpriv_open

The open syscall can obviously fail, and its return code needs to be
checked.

Reviewed-by: Michael Niedermayer <mich...@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanaga...@gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=31ed189d5c0583cac118197689b4f3766aa146cb
---

 libavutil/internal.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavutil/internal.h b/libavutil/internal.h
index 13dbd3b..5c2cd99 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -259,6 +259,7 @@ void avpriv_request_sample(void *avc,
 /**
  * A wrapper for open() setting O_CLOEXEC.
  */
+av_warn_unused_result
 int avpriv_open(const char *filename, int flags, ...);
 
 int avpriv_set_systematic_pal2(uint32_t pal[256], enum AVPixelFormat pix_fmt);

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to