Hmm ok, but I'm still interested in how to solve that warning. It's a tough sell to recommend code that gives warnings especially when you can't understand why.
is a pretty strong hint that you need to read the docs... or at least search for a few of the many threads here where the explanation and (quasi-) legitimate workarounds abound.