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

Mark unused vars on local vars #77

Merged
merged 2 commits into from
Apr 14, 2024

Conversation

masatake
Copy link
Contributor

When building Universal Ctags, some local variables in code generated by packcc cause warnings:

        peg/kotlin.c: In function ‘pcc_evaluate_rule_classParameter’:
        peg/kotlin.c:3474:22: warning: unused variable ‘n’ [-Wunused-variable]
         3474 |         const size_t n = chunk->thunks.len;
              |                      ^
        peg/kotlin.c:3473:22: warning: unused variable ‘p’ [-Wunused-variable]
         3473 |         const size_t p = ctx->cur;
              |                      ^

Universal Ctags uses -Wall option.

When building Universal Ctags, some local variables in code
generated by packcc cause warnings:

    peg/kotlin.c: In function ‘pcc_evaluate_rule_classParameter’:
    peg/kotlin.c:3474:22: warning: unused variable ‘n’ [-Wunused-variable]
     3474 |         const size_t n = chunk->thunks.len;
	  |                      ^
    peg/kotlin.c:3473:22: warning: unused variable ‘p’ [-Wunused-variable]
     3473 |         const size_t p = ctx->cur;
	  |                      ^

Signed-off-by: Masatake YAMATO <[email protected]>
@arithy arithy merged commit 443920d into arithy:master Apr 14, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants