Skip to content
This repository has been archived by the owner on Mar 8, 2019. It is now read-only.

Warning message when compiling code #19

Open
Flexicoder opened this issue Feb 19, 2016 · 3 comments
Open

Warning message when compiling code #19

Flexicoder opened this issue Feb 19, 2016 · 3 comments

Comments

@Flexicoder
Copy link

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

@gskbyte
Copy link
Contributor

gskbyte commented Feb 24, 2016

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

@Flexicoder
Copy link
Author

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!

@gskbyte
Copy link
Contributor

gskbyte commented Feb 24, 2016

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:

568f544

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants