Hello,
I compiled postgresql with
PYTHON=/usr/local/bin/python3 scan-build ./configure --with-perl
--with-tcl --with-gssapi --with-ldap --with-openssl --with-libxml
--with-libxslt --with-systemd --with-python
scan-build make
and here are the results:
https://mail.aegee.org/dpa/scan-build-pg-b3a47cdfd6/
Please note, that the information is only about what gets actually
compiled, code disabled by #if .. #endif is not considered (e.g. when
determining whether a variable assignment is useless). There are
probably some false-positives.
I used scan-build/clang 4.0.
Enjoy
Дилян