[fpc-devel] How to suppress warnings in code?

Martin Schreiber mse00000 at gmail.com
Thu Sep 27 09:11:01 CEST 2018


On 9/26/18 6:38 PM, Sven Barth via fpc-devel wrote:
> 
> Please provide concrete examples.
> 
Here:
https://gitlab.com/mseide-msegui/mseide-msegui/tree/fpc_3_2

On Linux-X86-64 in clone directory compile with
"
<your fixes_3_2 FPC> -O- -Fulib/common/* -Fulib/common/kernel/linux
apps/ide/mseide.pas
",
repeat until only "apps/ide/mseide.pas" will be compiled.

Touch "lib/common/kernel/mseformatstr.pas", compile again,
"mseformatstr.pas" will be compiled without warnings.

Compile with
"
<your fixes_3_2 FPC> -B -O- -Fulib/common/* -Fulib/common/kernel/linux
apps/ide/mseide.pas
"
"mseformatstr.pas" will be compiled with warnings.

BTW, compiletimes (s):

run              2      3      4
FPC fixes_2_6   39.6   37.8   38.6
FPC fixes_3_0   53.9   53.3   53.8
FPC fixes_3_2   64.6   68.1   65.3

OpenSUSE LEAP 42.3
4 x Intel(R) Pentium(R) CPU  J2900  @ 2.41GHz, 3.8 GiB RAM

Martin



More information about the fpc-devel mailing list