If your code "looks" like it's indented and it still gives warnings then you are mixing tabs and spaces. For indentation, you should use one or the other, not both.
Use Notepad++ and you can turn on non-printable characters and you'll see where there are spaces (dots) and where there are tabs (arrows).