Skip to content

Add ignorewarn pragma to pawn compiler#1111

Open
ArKaNeMaN wants to merge 1 commit intoalliedmodders:masterfrom
ArKaNeMaN:feature/compiler-pragma-ignorewarn
Open

Add ignorewarn pragma to pawn compiler#1111
ArKaNeMaN wants to merge 1 commit intoalliedmodders:masterfrom
ArKaNeMaN:feature/compiler-pragma-ignorewarn

Conversation

@ArKaNeMaN
Copy link
Copy Markdown
Contributor

Usage:

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

@xLeviNx
Copy link
Copy Markdown

xLeviNx commented Aug 24, 2024

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

@ArKaNeMaN
Copy link
Copy Markdown
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
Copy Markdown

#pragma tabsize 0

@ArKaNeMaN
Copy link
Copy Markdown
Contributor Author

@Ganter1234, it did not help)

@Giferns
Copy link
Copy Markdown

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
Copy Markdown
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

@dystopm
Copy link
Copy Markdown
Contributor

dystopm commented Feb 3, 2025

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.

Show those macros, I had that problem and I solved them by using ( ) enclosing variable assignations.

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.

6 participants