OSDN Git Service

avutil/file: add av_warn_unused_result to av_file_map
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Thu, 15 Oct 2015 22:18:02 +0000 (18:18 -0400)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Fri, 16 Oct 2015 21:18:39 +0000 (17:18 -0400)
The return code here should be checked.

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

index 1cae295..e931be7 100644 (file)
@@ -40,6 +40,7 @@
  * @return a non negative number in case of success, a negative value
  * corresponding to an AVERROR error code in case of failure
  */
+av_warn_unused_result
 int av_file_map(const char *filename, uint8_t **bufptr, size_t *size,
                 int log_offset, void *log_ctx);