Is there actually a compiler which complains about these?
On 10/27/20 9:13 PM, Zebediah Figura wrote:
Is there actually a compiler which complains about these?
It makes sense, because of what happens in failure path on goto. Warning might show up when building without mingw, but I haven't checked.
Is there actually a compiler which complains about these?
Yes. With clang (llvm-mingw[1]). Although there are other initialization warnings, this one is different because the objects are also checked before releasing memory (the fearful goto failed;). The warnings are like this:
../wine-source/dlls/mf/evr.c:2076:9: note: uninitialized use occurs here if (mixer) ^~~~~ ../wine-source/dlls/mf/evr.c:2079:9: note: uninitialized use occurs here if (presenter) ^~~~~~~~~