GCC 9-13 do not emit warnings for this at all optimization levels even when -Wmaybe-uninitialized is not disabled.
Unified · Split
| @@ -835,14 +835,14 @@ int ff_filter_opt_parse(void *logctx, const AVClass *priv_class, · 834 unmodified lines | |||
| 835 | { | 835 | { |
| 836 | const AVOption *o = NULL; | 836 | const AVOption *o = NULL; |
| 837 | int ret; | 837 | int ret; |
| 838 | char *av_uninit(parsed_key), *av_uninit(value); | ||
| 839 | const char *key; | ||
| 840 | int offset= -1; | 838 | int offset= -1; |
| 841 | 839 | ||
| 842 | if (!args) | 840 | if (!args) |
| 843 | return 0; | 841 | return 0; |
| 844 | 842 | ||
| 845 | while (*args) { | 843 | while (*args) { |
| 844 | char *parsed_key, *value; | ||
| 845 | const char *key; | ||
| 846 | const char *shorthand = NULL; | 846 | const char *shorthand = NULL; |
| 847 | int additional_flags = 0; | 847 | int additional_flags = 0; |
| 848 | 848 | ||