use the detected flags to disable appropriate warnings