Whistling in the Royal Navy in fairly recent times was discouraged on the grounds that it could be mistaken for a high-pressure steam/air leak. The stock answer when being pulled up for whistling was "Ever heard a steam/air leak whistle Dixie?". And yes, I did my time in the RN.