Skip to content

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

@dystopm
Copy link
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