If an official sounded the whistle, but didn't say anything, he'd look like a tool.
If an official sounded the whistle, and said, "violation - ball didn't hit the rim", people would think "Thanks Captain Obvious" - and people would think the official is a tool.
So conclusion: don't sound the whistle.