Add pragma diagnostic for method that is only fired on older OSes