Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2019-04

{$warn 5024 off} does not work with FPC 3.2.0

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I have included the following lines in a "fpg_defines.inc" include file in my project, yet when I compile/build my project, it still shows that compiler hint (as can be seen in the attached screenshot).

// common compiler options
{$mode objfpc}{$H+}
{$interfaces corba}
{$warn 5024 off} // Hint: Parameter "$1" not used

The include file is below the "unit xxx" line, and appears in every unit of my project.

Am I doing something wrong in my project settings? I normally have the -viewnh compiler parameters specified so I can see other hints and warnings. The screenshot output used -vwhilq just so I could confirm I am trying to suppress the correct warning number.... 5024.

FPC 3.0.4 gives the same output. So no better.

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 6 lines
On 22/04/2019 00:14, Graeme Geldenhuys wrote: > yet when I compile/build my project, it still shows that > compiler hint (as can be seen in the attached screenshot). Is nobody else experiencing this?
{$warn 5024 off}
procedure TForm1.Edit1Change(Sender: TObject);
begin
   // Do nothing
end;

I get no warning. If I remove the statement, I get the warning.

Michael.

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt
Michael Van Canneyt wrote
I get no warning. If I remove the statement, I get the warning.

Thanks Michael. So it seems it is something local to my system then. I get warnings no matter what.

Do you have any compiler settings like -viewh in your ~/.fpc.cfg file? I'm trying to think what could affect the {$warn xxx off} to not work.

Regards,
Graeme

Reply by email