GCC is continuing to gain greater static code analysis capabilities these days:
https://developers.redhat.com/articles/2023/05/31/improvements-static-analysis-gcc-13-compiler#
It will be beneficial to add -fanalyzer to the build system.
After eliminating all warnings, we can turn it on in our CI.
Following Rust's trend, I expect more compiler work like this (https://lwn.net/SubscriberLink/936728/382fa9e0e0e2b2ed/) to come.
GCC is continuing to gain greater static code analysis capabilities these days:
https://developers.redhat.com/articles/2023/05/31/improvements-static-analysis-gcc-13-compiler#
It will be beneficial to add
-fanalyzerto the build system.After eliminating all warnings, we can turn it on in our CI.
Following Rust's trend, I expect more compiler work like this (https://lwn.net/SubscriberLink/936728/382fa9e0e0e2b2ed/) to come.