[FFmpeg-devel] [PATCH] avutil/buffer: add av_warn_unused_result

Ganesh Ajjanagadde gajjanagadde at gmail.com
Fri Oct 16 00:22:18 CEST 2015


Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
 libavutil/buffer.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/buffer.h b/libavutil/buffer.h
index b4399fd..6f03677 100644
--- a/libavutil/buffer.h
+++ b/libavutil/buffer.h
@@ -178,6 +178,7 @@ int av_buffer_get_ref_count(const AVBufferRef *buf);
  *            written in its place. On failure, buf is left untouched.
  * @return 0 on success, a negative AVERROR on failure.
  */
+av_warn_unused_result
 int av_buffer_make_writable(AVBufferRef **buf);
 
 /**
@@ -195,6 +196,7 @@ int av_buffer_make_writable(AVBufferRef **buf);
  * reference to it (i.e. the one passed to this function). In all other cases
  * a new buffer is allocated and the data is copied.
  */
+av_warn_unused_result
 int av_buffer_realloc(AVBufferRef **buf, int size);
 
 /**
-- 
2.6.1



More information about the ffmpeg-devel mailing list