[FFmpeg-devel] [PATCH] avutil/sha512: add av_warn_unused_result to av_sha512_init
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Fri Oct 16 01:37:34 CEST 2015
This will trigger some useful warnings in avutil/hash that need to be fixed.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
libavutil/sha512.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavutil/sha512.h b/libavutil/sha512.h
index 7b08701..6aecf31 100644
--- a/libavutil/sha512.h
+++ b/libavutil/sha512.h
@@ -49,6 +49,7 @@ struct AVSHA512 *av_sha512_alloc(void);
* @param bits number of bits in digest (224, 256, 384 or 512 bits)
* @return zero if initialization succeeded, -1 otherwise
*/
+av_warn_unused_result
int av_sha512_init(struct AVSHA512* context, int bits);
/**
--
2.6.1
More information about the ffmpeg-devel
mailing list