I don’t know, as I said I don’t think this warning is related to the code you posted above. Please read
and make an MWE which produces this warning.