Just curious, if I have unused variables will B4X compiler automatically remove them out of the output compiled and are there any consequence like extra memeory usage? The warning is helpful for potential coding errors though.
The compiler will not remove unused variables.
1. The impact of those variables on the app size or memory usage is insignificant.
2. There are cases that the variables are actually used even if the compiler cannot detect the usage.