> If you have a uses clause, try adding it after the uses clause.
Yep, indeed that did the trick.
But note also that it must be after the "uses" clause after "implementation"
(otherwise after first "uses" it does not work).
Also, to make earlier fpc versions happy, this must be added:
{$if fpc_
On 27/03/2020 22:26, fredvs via fpc-pascal wrote:
>> It works for me:
>
> It seems that you did try to use {$warn 6060 off} in a program-file.
>
> But did you try with a unit-file?
$ cat tt.pp
unit tt;
{$warn 6060 off}
interface
uses
sysutils;
implementation
procedure test;
var
b: 1..
> It works for me:
It seems that you did try to use {$warn 6060 off} in a program-file.
But did you try with a unit-file?
Fre;D
-
Many thanks ;-)
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist - fpc-p
On 27/03/2020 22:20, fredvs via fpc-pascal wrote:
>>> Will it disable all the warnings concerned for all the code of the unit?
>> Yes.
> Hum, here, adding {$warn 6060 off} after "unit", on Linux 64 bit, compiled
> with fpc 3.3.1 trunk of 7 days ago, the warnings are still there.
If you have a us
> cat" is a program
Ha, ok.
>> Will it disable all the warnings concerned for all the code of the unit?
> Yes.
Hum, here, adding {$warn 6060 off} after "unit", on Linux 64 bit, compiled
with fpc 3.3.1 trunk of 7 days ago, the warnings are still there.
Fre;D
-
Many thanks ;-)
--
Sent fro
On 27/03/2020 21:30, fredvs via fpc-pascal wrote:
>> It works for me:
>
>> $ cat tt.pp
>> {$warn 6060 off}
>
> Ha, on Linux too?
>
> By the way, what is "$ cat tt.pp", is it needed to disable the warning?
"cat" is a program that shows the contents of a file. It was to show you
the source code t
> It works for me:
> $ cat tt.pp
> {$warn 6060 off}
Ha, on Linux too?
By the way, what is "$ cat tt.pp", is it needed to disable the warning?
And where did you place the code, just after "units" like explained in doc.
Will it disable all the warnings concerned for all the code of the unit?
Fre
On 24/03/2020 15:20, fredvs via fpc-pascal wrote:
>
> So doing this:
>
>> unit myunit;
>> {$warn 6060 off}
> Still gives some "Warning: (6060) Case statement does not handle all
> possible cases"
It works for me:
$ cat tt.pp
{$warn 6060 off}
var
b: 1..10;
begin
case b of
1: writel