1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-09 14:14:39 +02:00
FFmpeg/libavutil
Ganesh Ajjanagadde 1d4af04adf avutil/attributes: add av_warn_unused_result
GCC 3.4 introduced an attribute warn_unused_result to warn when a programmer
discards the return value. Applying this judiciously across the codebase can help
in fixing a lot of problems. At a high level, functions which return error codes
should always be checked. More concretely, consider the functions ff_add_format
and the like in avfilter/formats.h. A quick examination shows that a large portion
of libavfilter fails to handle the associated errors, usually AVERROR(ENOMEM).
The above example was where I observed the utility of this, but it should be
useful in many places across the code base.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-05 19:30:20 +02:00
..
2015-08-19 16:15:13 +00:00
2015-08-19 16:15:13 +00:00
2015-08-22 10:07:05 -07:00
2015-05-02 14:37:48 +02:00
2014-12-19 14:35:29 +01:00
2015-05-31 12:07:11 +02:00
2015-09-05 17:23:28 +02:00
2015-08-19 16:15:13 +00:00
2015-08-19 16:15:13 +00:00
2015-09-05 18:07:20 +02:00
2015-09-05 18:07:20 +02:00
2015-08-22 10:07:05 -07:00
2014-11-08 11:31:11 +01:00
2014-10-11 12:15:26 +02:00
2015-09-26 20:28:29 +02:00
2015-09-08 22:39:20 +02:00
2015-05-26 18:31:53 +02:00
2015-05-26 18:31:53 +02:00
2015-02-18 00:59:55 +01:00