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

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Graeme Geldenhuys-6
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

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

screenshot_20190422T000130.png (14K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

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

Graeme Geldenhuys-6
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?


Regards,
  Graeme

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Michael Van Canneyt


On Wed, 24 Apr 2019, Graeme Geldenhuys wrote:

> 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.
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Graeme Geldenhuys-6
On 24/04/2019 09:07, 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

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

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

Marco van de Voort-2
In reply to this post by Graeme Geldenhuys-6

Op 4/24/2019 om 9:53 AM schreef Graeme Geldenhuys:
> 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?
Try to put your includes and warnes after the interface statement
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal