Compiler option: -w

Forum for discussion about the documentation project.
Juergen Kuehlwein
Posts: 284
Joined: Mar 07, 2018 13:59
Location: Germany

Compiler option: -w

Postby Juergen Kuehlwein » Jun 08, 2019 13:33

There is a bug in this page

...
all
Equivalent to specifying a level of zero (0).
...


This is not true, "all" specifies a level of -1.


JK
fxm
Posts: 9553
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Compiler option: -w

Postby fxm » Jun 08, 2019 14:45

What documentation version do you use?
This was corrected on 2018-09-03.
(FB-manual-1.06.0 is OK, and obviously the wiki too)
counting_pine
Site Admin
Posts: 6189
Joined: Jul 05, 2005 17:32
Location: Manchester, Lancs

Re: Compiler option: -w

Postby counting_pine » Jun 08, 2019 14:55

Thanks for the report.
Note: the documentation files are produced from the FreeBASIC Wiki. This particular page is at /wiki/CompilerOptw.
From the history, it looks like Jeff corrected this last year.
Juergen Kuehlwein
Posts: 284
Joined: Mar 07, 2018 13:59
Location: Germany

Re: Compiler option: -w

Postby Juergen Kuehlwein » Jun 09, 2019 11:01

Obviously i have an outdated offline version (.chm) of the manual. Sorry for bothering you :-(


JK
fxm
Posts: 9553
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Compiler option: -w

Postby fxm » Jun 09, 2019 13:06

A 'freebasic_manual.chm' built every time the wiki is updated.
See at: http://users.freebasic-portal.de/stw/builds/
Juergen Kuehlwein
Posts: 284
Joined: Mar 07, 2018 13:59
Location: Germany

Re: Compiler option: -w

Postby Juergen Kuehlwein » Jun 09, 2019 15:34

Thanks, i already had it, but i made a mistake linking it to my IDE. So the older one was used instead of the new one, and i didn´t even notice it - my bad.


JK
coderJeff
Site Admin
Posts: 3170
Joined: Nov 04, 2005 14:23
Location: Ontario, Canada
Contact:

Re: Compiler option: -w

Postby coderJeff » Jun 23, 2019 20:25

Cosmetically, it would be nice to rebase the warning numbers to zero. It would change the meaning of '-w' option and numbers of warnings, but output would look nicer.

From: Re: Free Basic Compilers Version 1.06.0 (08-26-2018) seem broken
coderJeff wrote:One thing I would still like to fix, is that internally, '-w all' is actually equivalent to '-w -1'. That is, internally the warning level goes from -1 to 2 with the default level=0. I'd like to change that to 0 to 3 with the default level=1. What does that mean for users? well if they were using '-w level' in their builds, they would need to increment the level by 1 to get the same results.

Return to “Documentation”

Who is online

Users browsing this forum: No registered users and 5 guests