folly: avoid used-uninitialized bug in a test
authorJim Meyering <meyering@fb.com>
Thu, 11 Sep 2014 22:23:17 +0000 (15:23 -0700)
committerDave Watson <davejwatson@fb.com>
Mon, 15 Sep 2014 21:30:11 +0000 (14:30 -0700)
commit73ebd0fd0839b3df0ff4160fe11fa93dc443bfe3
treecd0569b42b71a2913c23dd99b66fdbf0c06f24f0
parentb39a14c4b383f88d81c339d8cb1058a23fe1a651
folly: avoid used-uninitialized bug in a test

Summary:
Clang complained about this.
* folly/gen/test/FileBenchmark.cpp (BENCHMARK): Initialize "rfd" to -1
and verify that it is set to something nonnegative in the first
BENCHMARK_SUSPEND block.

Test Plan:
Run this:
fbconfig -r --clang --with-project-version clang:dev folly/gen && fbmake runtests
and observe that compilation now succeeds. (and test results remain unchanged)

Reviewed By: tudorb@fb.com

Subscribers: njormrod

FB internal diff: D1551180

Tasks: 4090011
folly/gen/test/FileBenchmark.cpp