OSDN Git Service

libgui: Only allow one return from useFenceSync
authorDan Stoza <stoza@google.com>
Fri, 5 Dec 2014 21:43:03 +0000 (13:43 -0800)
committerDan Stoza <stoza@google.com>
Thu, 19 Mar 2015 17:32:51 +0000 (10:32 -0700)
commit744fc02fe85884e2cc456303b7471e56a877b970
tree2d7114f6d297cb071c41e993bee47426b3cfc92e
parent55466b48504f9a904c54f3cae4fc1a43dec73a6c
libgui: Only allow one return from useFenceSync

An #ifdef was causing multiple returns in this function, which was
triggering an unreachable code error on some build targets. This
adds an #else to ensure that only one return is exposed in any given
build.

Cherry pick of I9ed7c3e769bc9094ad31d810944227d1d8302886

Change-Id: Ibddc5706159d168031d1805fcce3eedc068296cf
libs/gui/SyncFeatures.cpp