diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-15 18:04:45 -0400 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-27 23:16:09 -0400 |
commit | a0e390e8ff33392ff7ab51d9f4c830da843ddff3 (patch) | |
tree | c119695290175222801bae514002527146ab85f5 | |
parent | 492dead9ac85ac98a09dabab1bfd586872824771 (diff) | |
download | ffmpeg-a0e390e8ff33392ff7ab51d9f4c830da843ddff3.tar.gz |
avutil/avstring: add av_warn_unused_result
This does not trigger any warnings, but adds robustness.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
-rw-r--r-- | libavutil/avstring.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/avstring.h b/libavutil/avstring.h index a306e8974d..a46d012552 100644 --- a/libavutil/avstring.h +++ b/libavutil/avstring.h @@ -339,6 +339,7 @@ enum AVEscapeMode { * @return the length of the allocated string, or a negative error code in case of error * @see av_bprint_escape() */ +av_warn_unused_result int av_escape(char **dst, const char *src, const char *special_chars, enum AVEscapeMode mode, int flags); @@ -378,6 +379,7 @@ int av_escape(char **dst, const char *src, const char *special_chars, * @return >= 0 in case a sequence was successfully read, a negative * value in case of invalid sequence */ +av_warn_unused_result int av_utf8_decode(int32_t *codep, const uint8_t **bufp, const uint8_t *buf_end, unsigned int flags); |