XNGMarkdownParser icon indicating copy to clipboard operation
XNGMarkdownParser copied to clipboard

Warning message when compiling code

Open Flexicoder opened this issue 9 years ago • 3 comments

In XNGMarkdownParser.m a FILE is declared, and in XNGMarkdownTokens.h the same variable is declared as an extern. Is this right?

Flexicoder avatar Feb 19 '16 10:02 Flexicoder

Hi, I've been testing this issue today and don't see any warning... We need the FILE to be able to parse the output generated by the lexical analyser, but the one declared as extern in XNGMarkdownTokens.h is automatically generated. Could you give us more details about your setup?

screen shot 2016-02-24 at 12 07 49

gskbyte avatar Feb 24 '16 11:02 gskbyte

The warning states "Declaration shadows a variable in the global scope"

screen shot 2016-02-24 at 12 19 58

I have got "Hidden Local Variables" warning option set to YES, should of said that!

Flexicoder avatar Feb 24 '16 12:02 Flexicoder

Allright, I'm casually working on improving the library and I have added a fix for this issue, you can check it in this commit:

https://github.com/xing/XNGMarkdownParser/commit/568f544e446cc5ee5236c57836b46e12edd00451

It would be awesome if you can review the whole pull request as well :)

gskbyte avatar Feb 24 '16 14:02 gskbyte