[Gambas-user] Where is the list of variables and prefix for them

Bruce Steers bsteers4 at gmail.com
Tue Dec 14 16:39:36 CET 2021


On Tue, 14 Dec 2021 at 08:59, Martin Belmonte <mbelmonte at belmotek.net>
wrote:

> Hi,
> In my project when the option "Check prefixes of viable" is activated,
> some warnings are produced with the variables that do not have the
> appropriate prefix with the type of declared variable, for example
> "dbType as String" gives error because the variable is not called "sType".
> Well, where is the list of these prefixes? which module or class has the
> list ?
> I have searched in the gambas3 source code but I can't find where it is.
>
> Here is the screenshoot
> https://imgur.com/xcp1ZcR.png
>

I had a quick look at the source and it looks to me like it's a gbc
argument.
the function GetCompileCommand() in Project.module that builds the
compilation command

Line 2500
      If CheckVariablePrefix Then sExec &= "-fcheck-prefix "

BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20211214/338ca9c8/attachment.htm>


More information about the User mailing list