summaryrefslogtreecommitdiff
path: root/libs/gui/Surface.cpp
diff options
context:
space:
mode:
author Chih-Hung Hsieh <chh@google.com> 2017-10-05 13:51:32 -0700
committer Chih-Hung Hsieh <chh@google.com> 2017-10-13 16:12:08 -0700
commitd66be0ae6929fee064a229d6c6bac3a871aba137 (patch)
treeedf6df30381838963d504cc4e0e68a7ec8f515b9 /libs/gui/Surface.cpp
parentafee092bee459332c8d577163794581c3128df4f (diff)
Use -Werror in frameworks/native/libs/gui and ui
* Remove unused variable and function. * Suppress warning of unused return results. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: If6f445be1e7677a37bf780844a79b84d6d7e1c1e
Diffstat (limited to 'libs/gui/Surface.cpp')
-rw-r--r--libs/gui/Surface.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/gui/Surface.cpp b/libs/gui/Surface.cpp
index 7b2b5c37f1..5bee7a41f6 100644
--- a/libs/gui/Surface.cpp
+++ b/libs/gui/Surface.cpp
@@ -153,7 +153,10 @@ status_t Surface::getDisplayRefreshCycleDuration(nsecs_t* outRefreshDuration) {
ATRACE_CALL();
DisplayStatInfo stats;
- status_t err = composerService()->getDisplayStats(NULL, &stats);
+ status_t result = composerService()->getDisplayStats(NULL, &stats);
+ if (result != NO_ERROR) {
+ return result;
+ }
*outRefreshDuration = stats.vsyncPeriod;