Avoid shadowing warnings in SYNCHRONIZED
authorGiuseppe Ottaviano <ott@fb.com>
Thu, 29 Dec 2016 04:18:43 +0000 (20:18 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 29 Dec 2016 04:33:16 +0000 (20:33 -0800)
commite910dd4bdc9db80cb412a5c6d4af8c6f9faa5591
treec27c92d6579cd58c989dc7298f1e025fbb0ddfd2
parent87659d07c32268836a18c5ccafb60612b8ffbdd4
Avoid shadowing warnings in SYNCHRONIZED

Summary: If two `SYNCHRONIZED` blocks are nested the internal `SYNCHRONIZED_*` variables can be compatible shadows (`SYNCHRONIZED_state` always is), so GCC will issue a warning with `-Wshadow-compatible-local`. This diff disambiguates the variable names for each `SYNCHRONIZED` block (as long as they appear on different lines).

Reviewed By: yfeldblum, philippv

Differential Revision: D4371263

fbshipit-source-id: b467a1a2651667c679382a1cc1eaa28f7ee4e6b3
folly/Synchronized.h