Commit 31ed189d authored by Ganesh Ajjanagadde's avatar 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: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent cd8a0a9a
...@@ -259,6 +259,7 @@ void avpriv_request_sample(void *avc, ...@@ -259,6 +259,7 @@ void avpriv_request_sample(void *avc,
/** /**
* A wrapper for open() setting O_CLOEXEC. * A wrapper for open() setting O_CLOEXEC.
*/ */
av_warn_unused_result
int avpriv_open(const char *filename, int flags, ...); int avpriv_open(const char *filename, int flags, ...);
int avpriv_set_systematic_pal2(uint32_t pal[256], enum AVPixelFormat pix_fmt); int avpriv_set_systematic_pal2(uint32_t pal[256], enum AVPixelFormat pix_fmt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment