Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable Shadowing Issue in tigr.c #61

Open
AdreKiseque opened this issue May 27, 2024 · 1 comment
Open

Variable Shadowing Issue in tigr.c #61

AdreKiseque opened this issue May 27, 2024 · 1 comment

Comments

@AdreKiseque
Copy link

(Apologies if I'm missing something obvious, I'm a novice)

Trying to learn TIGR so I started by building the hello example in my space. But on running make hello I get the following error:

tigr/tigr.c:1820:19: error: declaration shadows a local variable [-Werror,-Wshadow]
        TigrGlyph g = font->glyphs[i];
                  ^
tigr/tigr.c:1730:16: note: previous declaration is here
    TigrGlyph* g;
               ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 errors generated.
make: *** [Makefile:13: hello] Error 1

Straightforward error, I imagine it's caused by a compiler difference (I'm using Clang). Probably easy to fix.

@AdreKiseque
Copy link
Author

Looks like there are multiple instances of this variable shadowing issue. Very disturbing.

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

No branches or pull requests

1 participant