aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/opt.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-27 02:04:29 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-30 05:06:28 +0100
commitba7980d9c0d189a4757dc48b34858f22e3ed3876 (patch)
tree4389e7f54dc16495b3b172f86be37f61435f6cdf /libavutil/opt.c
parentdc7a60529c27355927acec5ffe600c8d0d650c67 (diff)
downloadffmpeg-ba7980d9c0d189a4757dc48b34858f22e3ed3876.tar.gz
avutil/opt: Avoid av_uninit
GCC 9-13 do not emit warnings for this at all optimization levels even when -Wmaybe-uninitialized is not disabled. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/opt.c')
-rw-r--r--libavutil/opt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c
index 5feb5b2cb7..14f9343845 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -1861,7 +1861,6 @@ int av_opt_set_from_string(void *ctx, const char *opts,
{
int ret, count = 0;
const char *dummy_shorthand = NULL;
- char *av_uninit(parsed_key), *av_uninit(value);
const char *key;
if (!opts)
@@ -1870,6 +1869,7 @@ int av_opt_set_from_string(void *ctx, const char *opts,
shorthand = &dummy_shorthand;
while (*opts) {
+ char *parsed_key, *value;
ret = av_opt_get_key_value(&opts, key_val_sep, pairs_sep,
*shorthand ? AV_OPT_FLAG_IMPLICIT_KEY : 0,
&parsed_key, &value);