You need to understand the difference between warnings and errors. A warning is the compiler telling you there is something in the code that could possibly cause a problem but doesn't cause the compilation to fail. An error is a problem with the code that causes compilation to fail. In this case you have posted a warning, not an error.
It's best to write code that doesn't produce warnings but there are some warnings that don't represent a serious problem with your code. This is one of those. Fix it if you like. Ignore it if you like. Either way, don't let it block your progress.