Discussion:
How to suppress warnings in code?
Add Reply
Martin Schreiber
2018-09-26 15:13:54 UTC
Reply
Permalink
Hi,
How can individual warnings be suppressed in code in Free Pascal fixes_3_2?
{$warn <n> off} seems not to work reliable in some projects if compiled
with -B.

Thanks, Martin
_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http:/
Sven Barth via fpc-devel
2018-09-26 16:38:05 UTC
Reply
Permalink
Post by Martin Schreiber
Hi,
How can individual warnings be suppressed in code in Free Pascal fixes_3_2?
{$warn <n> off} seems not to work reliable in some projects if compiled
with -B.
Please provide concrete examples.

Regards,
Sven
Martin Schreiber
2018-09-27 07:11:01 UTC
Reply
Permalink
Post by Sven Barth via fpc-devel
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
_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mail
Martin Schreiber
2018-09-28 06:44:29 UTC
Reply
Permalink
Post by Martin Schreiber
Post by Sven Barth via fpc-devel
Please provide concrete examples.
https://gitlab.com/mseide-msegui/mseide-msegui/tree/fpc_3_2
Bug report:
https://bugs.freepascal.org/view.php?id=34349

Martin
_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-de

Loading...