Fix some minor warnings from cppcheck in WTF.
Pull request: https://github.com/WebKit/WebKit/pull/12269
Committed 262482@main (9dd212febdb2): <https://commits.webkit.org/262482@main> Reviewed commits have been landed. Closing PR #12269 and removing active labels.
<rdar://problem/107511971>