#64 Touching variables to silence cppcheck

Unstable_(example)
open
nobody
None
1
2013-06-25
2013-06-25
No

Hi,

I was checking out the differences between the osso sipp work and your changes and I came accross the following workaround:

  • // We want the percentile parameter, as it means we have a consistent
  • // interface - cast it to void to suppress warnings.
  • (void)percentile;

I believe the canonical way to silence cppcheck (and friends) is to simply comment out the argument name instead.

  • double CDefaultPause::cdfInv(double /percentile/)

Regards,
Walter Doekes

I

1 Attachments

Discussion


Log in to post a comment.