You just can't compile the script without fixing those warnings, so.. it's a must!
Scripts can be compiled as long as the compiler doesn't give errors. It compiles even if it gives warnings but as Ralfie said - some of the warnings must be fixed because they can cause problems.