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