magic-lang / magic

0 stars 2 forks source link

Reduntant type information warning when one of the parameters is actually a pointer #81

Closed davidhesselbom closed 9 years ago

davidhesselbom commented 9 years ago

This

glGetBooleanv: extern func (pname: UInt, params: UInt*)

gets the warning

redundant type information, reduce to (pname, params: UInt)

but one of the parameters is a pointer and the other one isn't, so that's not a good idea. magic needs to be more intelligent, there.

davidhesselbom commented 9 years ago

As a general rule, make it a priority to eliminate false positives from the reports so that people don't have to learn to ignore certain warnings.