Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
watchman/Future.h: avoid shadowing warnings
Summary: Fix warnings exposed by gcc-4.9.x's -Wshadow-compatible-local I plan to enable this for all of fbcode, soon. See https://fburl.com/bad-shadow for justification. Rename two inner "result" to "res" and "res2" respectively. This avoids the following errors: watchman/Future.h:311:61: error: declaration of 'watchman::Result<std::basic_fbstring<char>, std::__exception_ptr::exception_ptr>&& result' shadows a parameter [-Werror=shadow-compatible-local] watchman/Future.h:308:45: error: shadowed declaration is here [-Werror=shadow-compatible-local] Reviewed By: wez Differential Revision: D4674208 fbshipit-source-id: 29c5c93cc2837331f20e66a740942e2641536921
- Loading branch information