{$warn <n> off} does not work with -B
Original Reporter info from Mantis: mse
-
Reporter name: Martin Schreiber
Original Reporter info from Mantis: mse
- Reporter name: Martin Schreiber
Description:
{$warn &LtPos;n> off} seems not to work reliable in some projects if compiled
with -B.
Steps to reproduce:
Testcase (b8b9fc9acdfdcac803aa2ac1860555f1801ac73a from 2018-09-27):
https://gitlab.com/mseide-msegui/mseide-msegui/tree/fpc_3_2
On Linux-X86-64 in clone directory compile with
"
&LtPos;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
"
&LtPos;your fixes_3_2 FPC> -B -O- -Fulib/common/* -Fulib/common/kernel/linux
apps/ide/mseide.pas
"
"mseformatstr.pas" will be compiled with warnings.
Mantis conversion info:
- Mantis ID: 34349
- OS: Linux
- Build: fixes_3_2
- Platform: x86-64
- Version: 3.2.0
- Monitored by: » mse (Martin Schreiber)