I was looking for an option that would disable these checks, but couldn't see anything.  The closest I could find was just suppressing all warnings for this function call.  I suppose just suppressing them in the test would work as well.