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

Cleanup warnings #600

Merged
merged 5 commits into from
Oct 19, 2023
Merged

Cleanup warnings #600

merged 5 commits into from
Oct 19, 2023

Conversation

taniwha
Copy link
Contributor

@taniwha taniwha commented Oct 19, 2023

This cleans up the warnings encountered when trying to build QuakeForge with the git version of flex.

yy_state_buf_max and yyread's max_size are both (yy_)size_t so ensure
the comparison is against (yy_)size_t for the other expression.
This prevents unused variable warnings in lexers that don't use reject.
yy_create_buffer makes no use of YY_G and thus does not require its
declaration. Removes another unused variable warning.
The declaration had the ifdef, but the defintion was missing it, thus
lexers that don't use yyunput would generate an unused static function
warning.
It turns out I had missed some tests for recursive scanners.
@westes westes merged commit ee2d527 into westes:master Oct 19, 2023
0 of 2 checks passed
@taniwha taniwha deleted the cleanup-warnings branch October 19, 2023 23:51
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