[FFmpeg-devel] [PATCH] avutil/crc: add av_warn_unused_result to av_crc_init

Ganesh Ajjanagadde gajjanagadde at gmail.com
Fri Oct 16 01:32:45 CEST 2015


This triggers useful warnings in avcodec/mlp that need to be fixed.

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

diff --git a/libavutil/crc.h b/libavutil/crc.h
index e86bf1d..75929b2 100644
--- a/libavutil/crc.h
+++ b/libavutil/crc.h
@@ -60,6 +60,7 @@ typedef enum {
  * @param ctx_size size of ctx in bytes
  * @return <0 on failure
  */
+av_warn_unused_result
 int av_crc_init(AVCRC *ctx, int le, int bits, uint32_t poly, int ctx_size);
 
 /**
-- 
2.6.1



More information about the ffmpeg-devel mailing list