[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#8018) a lot of warnings building with -Wall

On 06/01/2015 15:47, leo@yuriev.ru wrote:
> Full_Name: Leonid Yuriev
> Version: git-master
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (
> It is about 5K warnings reported by gcc/clang if building OpenLDAP with -Wall.
>    CFLAGS="-Wall" ./configure ...
>    make depend && make
> The vast majority of warnings about harmless things: unnecessary arguments to
> printf through Debug macro, unused variables and functions, etc.
> But such amount of warnings makes impossible to use -Wall to find a potential
> problems.
> I have prepared the patchset which fixes most of these warnings.
> It will be submited shortly.

My 2c:

- normal users do not need to build with -Wall; only developers might 
need to

- in addition to -Wall, if you add -Wno-[specific harmless warnings you 
want to disable], then only relevant ones do surface.

Pierangelo Masarati
Associate Professor
Dipartimento di Scienze e Tecnologie Aerospaziali
Politecnico di Milano