389ds / 389-ds-base

The enterprise-class Open Source LDAP server for Linux
https://www.port389.org/
Other
213 stars 94 forks source link

Issue 6248 - fix fanalyzer warnings #6253

Closed progier389 closed 4 months ago

progier389 commented 4 months ago

This change remove all gcc -fanalyzer warnings. Number of them are not that interesting (False/positive due to some limts of the analyzer and some possible crashes when running out of memory. But some of these warnings where real concerns.

Issue #6248

Reviewed by: @droideck (Thanks!)

progier389 commented 4 months ago

A bit funny: previous @droideck remark make me realize that I got different result when using "-O2 -g -fanalyzer" (some errors) than when using "-DDEBUG -DMCC_DEBUG -g3 -ggdb -gdwarf-5 -O0 -fanalyzer" (no errors)