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

2018-09-28 Thread Martin Schreiber
On Thursday 27 September 2018 09:11:01 Martin Schreiber wrote:
> 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
>
Bug report:
https://bugs.freepascal.org/view.php?id=34349

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


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

2018-09-27 Thread Martin Schreiber
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
"
 -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
"
 -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-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


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

2018-09-26 Thread Sven Barth via fpc-devel
Martin Schreiber  schrieb am Mi., 26. Sep. 2018, 17:14:

> Hi,
> How can individual warnings be suppressed in code in Free Pascal fixes_3_2?
> {$warn  off} seems not to work reliable in some projects if compiled
> with -B.
>

Please provide concrete examples.

Regards,
Sven

>
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


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

2018-09-26 Thread Martin Schreiber
Hi,
How can individual warnings be suppressed in code in Free Pascal fixes_3_2?
{$warn  off} seems not to work reliable in some projects if compiled
with -B.

Thanks, Martin
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel