View Single Post
Gold Fish
Senior Member
Join Date: Mar 2020
Old 02-11-2021 , 07:01   Re: SourcePawn compiler suggestion
Reply With Quote #5

Quote:
Originally Posted by DJ Tsunami View Post
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.
Thanks a lot, didn't know about this.
But it would be more convenient with the preprocessor directive #pragma so that the online compiler would also support this function
Gold Fish is offline