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

Add ignorewarn pragma to pawn compiler #1111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ArKaNeMaN
Copy link
Contributor

Usage:

#pragma ignorewarn 217
// Will ignore all 217 (loose indentation) warnings

@xLeviNx
Copy link

xLeviNx commented Aug 24, 2024

Good practice would be to not ignore these and fix indentation.

@ArKaNeMaN
Copy link
Contributor Author

ArKaNeMaN commented Aug 24, 2024

Good practice would be to not ignore these and fix indentation.

Yes, but I have some macros which visually dont have wrong indentation, but compiler shows 217 warnings.
I dont want to refuse to use this macros, so I want to hide this warnings.

@Ganter1234
Copy link

#pragma tabsize 0

@ArKaNeMaN
Copy link
Contributor Author

@Ganter1234, it did not help)

@Giferns
Copy link

Giferns commented Aug 24, 2024

This might also help in the situations with
warning 206: redundant test: constant expression is non-zero

@Th3-822
Copy link
Contributor

Th3-822 commented Aug 24, 2024

#pragma tabsize 0

this one doesn't work because there is a check for > 0 before applying it

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.

5 participants