When I was part of the Philadelphia Bicycle Club 20 years ago (before I moved away), that was how we did it when we were riding in a group. We'd slap (not super loud, but enough to get someone's attention) the side of our thigh and then point down at the object to avoid. I think the slapping actually helps to get someone's attention first rather than just pointing. We also tried to shout out the warning, too.