Add some fixes and workarounds for gcc-11 static analyzer.
Not everything is a real bug (false positive rate is very high here), but the code is actually more readable.
Not everything is a real bug (false positive rate is very high here), but the code is actually more readable.