Can you generalize your code and post an SSCCE that demonstrates these warnings?