A whistle is not used in formal situations unless, possibly, to get someones attention.
One of the following sentences is nonsensical. Which one is it?
Options:
(a) "you can wave to salute a person formally"
(b) "you can whistle to salute a person formally"