SourcePawn compiler suggestion
Pawn compiler has a preprocessor directive #pragma warning disable <number>,
For example #pragma warning disable 203 which removes warnings, please add this directive to the sourcepawn compiler. It is very uncomfortable to compile the code, there are a lot of warning 213: tag mismatch warnings, they clog the compiler log. Thanks. |
Re: SourcePawn compiler suggestion
Instead of asking for a feature to disable warnings (which are helpful for maintaining your code), why not actually fix the code to get rid of the warnings instead? Tag mismatches are easy to fix.
|
Re: SourcePawn compiler suggestion
Quote:
https://funkyimg.com/p/3aH77.jpg PHP Code:
9 useless warnings that get in the way! https://funkyimg.com/i/3aH7M.jpg |
Re: SourcePawn compiler suggestion
You are storing strings in an integer array. So those warnings are not so useless after all.
To use different variable types in an array probably want to use enum structs. Also, spcomp already has -w<num> to disable a specific warning by its number. |
Re: SourcePawn compiler suggestion
Quote:
But it would be more convenient with the preprocessor directive #pragma so that the online compiler would also support this function |
Re: SourcePawn compiler suggestion
Quote:
You just have no idea how convenient it is to go quickly in one loop through the entire multi-level array! |
Re: SourcePawn compiler suggestion
Edit: answering my own question: there's a <testing> include in SourceMod I was completely unaware of that solves this.
PHP Code:
Quote:
PHP Code:
In SourceMod pre-1.11, you could write PHP Code:
|
Re: SourcePawn compiler suggestion
Quote:
|
All times are GMT -4. The time now is 05:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.