contrib: silence cppcheck compiler errors
This fixes a misleading 'fatal error' message that appears when make is invoked for contribs, as described in #27280 (closed).
Since cppcheck only used stdout of $(CC) to begin with, suppressing stderr in this manner should not change its overall behavior.