general warning handler, to prevent test failure if warning acceptable