joaorobertoct2 / x-superobject

Automatically exported from code.google.com/p/x-superobject
0 stars 0 forks source link

Compiling Hints and Warnings #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build a project using X-Superobject with all warnings and hits enabled

What is the expected output? 
I would like to suggest to fix the warnings and hints that the compiler is 
displaying. This is not critical at all, but I see many that are simple things 
like unused variables. In my project I try to make things clear possible and 
xsuperobject is giving me a page of warnings.

What version of the product are you using? On what operating system?
Revision 68, XE6 update 1

Please provide any additional information below.
Keep the good project going, it is very useful. Thank  you

Original issue reported on code.google.com by edua...@yashar.com.br on 18 Jul 2014 at 12:15

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thats about Delphi IDE , because of that there is no thing to do,
Im sorry

Original comment by onryld...@gmail.com on 19 Jul 2014 at 6:47

GoogleCodeExporter commented 9 years ago
I could only get to comment today.

Look:
[dcc32 Hint] XSuperJSON.pas(137): H2269 Overriding virtual method 
'TJSONNull.AsJSONString' has lower visibility (protected) than base class 
'XSuperJSON.TJSONValue<System.Boolean>' (public)
[dcc32 Hint] XSuperJSON.pas(144): H2269 Overriding virtual method 
'TJSONBoolean.AsJSONString' has lower visibility (protected) than base class 
'XSuperJSON.TJSONValue<System.Boolean>' (public)
[dcc32 Hint] XSuperJSON.pas(152): H2269 Overriding virtual method 
'TJSONString.AsJSONString' has lower visibility (protected) than base class 
'XSuperJSON.TJSONValue<System.string>' (public)
[dcc32 Hint] XSuperJSON.pas(160): H2269 Overriding virtual method 
'TJSONInteger.AsJSONString' has lower visibility (protected) than base class 
'XSuperJSON.TJSONValue<System.Int64>' (public)
[dcc32 Hint] XSuperJSON.pas(168): H2269 Overriding virtual method 
'TJSONFloat.AsJSONString' has lower visibility (protected) than base class 
'XSuperJSON.TJSONValue<System.Double>' (public)
[dcc32 Hint] XSuperJSON.pas(273): H2269 Overriding virtual method 
'TJSONObject.AsJSONString' has lower visibility (protected) than base class 
'XSuperJSON.TJSONValue<XSuperJSON.IJSONPair>' (public)
[dcc32 Hint] XSuperJSON.pas(309): H2269 Overriding virtual method 
'TJSONArray.AsJSONString' has lower visibility (protected) than base class 
'XSuperJSON.TJSONValue<XSuperJSON.IJSONAncestor>' (public)
[dcc32 Warning] XSuperJSON.pas(434): W1050 WideChar reduced to byte char in set 
expressions.  Consider using 'CharInSet' function in 'SysUtils' unit.
[dcc32 Hint] XSuperObject.pas(117): H2509 Identifier 'T' conflicts with type 
parameters of container type
[dcc32 Warning] XSuperObject.pas(251): W1010 Method 'ToString' hides virtual 
method of base type 'TObject'
[dcc32 Warning] XSuperObject.pas(1498): W1035 Return value of function 
'TSerializeParse.GetArrayRawData' might be undefined
[dcc32 Warning] XSuperObject.pas(1537): W1035 Return value of function 
'TSerializeParse.GetMemberType' might be undefined
[dcc32 Hint] XSuperObject.pas(1779): H2164 Variable 'Ctx' is declared but never 
used in 'TSerializeParse.WriteGeneric'
[dcc32 Hint] XSuperObject.pas(1780): H2164 Variable 'Typ' is declared but never 
used in 'TSerializeParse.WriteGeneric'
[dcc32 Warning] XSuperObject.pas(2286): W1036 Variable 'SBuilder' might not 
have been initialized
[dcc32 Warning] XSuperJSON.pas(784): W1036 Variable 'JSON' might not have been 
initialized
[dcc32 Warning] XSuperJSON.pas(817): W1050 WideChar reduced to byte char in set 
expressions.  Consider using 'CharInSet' function in 'SysUtils' unit.
[dcc32 Hint] XSuperJSON.pas(1264): H2077 Value assigned to 'UseEscape' never 
used
[dcc32 Hint] XSuperJSON.pas(1144): H2077 Value assigned to 'UseEscape' never 
used
[dcc32 Warning] XSuperJSON.pas(1815): W1036 Variable 'Index' might not have 
been initialized
[dcc32 Hint] XSuperJSON.pas(490): H2219 Private symbol 'FNextRoute' declared 
but never used

I am refering to those warnings and hints. As you can see it is legitimate. I 
am using XE6, but I got the same since XE2.

I was wondering if you could fix those, so I can have a clear compilation?

Many thanks for you attention!!!

Original comment by edua...@yashar.com.br on 20 Jul 2014 at 6:58