Skip to content

Commit

Permalink
avutil/file: add av_warn_unused_result to av_file_map
Browse files Browse the repository at this point in the history
The return code here should be checked.

Reviewed-by: Michael Niedermayer <[email protected]>
Signed-off-by: Ganesh Ajjanagadde <[email protected]>
  • Loading branch information
Ganesh Ajjanagadde committed Oct 16, 2015
1 parent 31ed189 commit a0b079a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libavutil/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a0b079a

Please sign in to comment.