aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianjie Xu2017-08-28 16:15:07 -0500
committerTianjie Xu2017-08-28 23:56:33 -0500
commitc89d1e7e2a6a8a07bb336db35db88f5452d8a51d (patch)
treebb13d2572bc220a73808f455c5191e62e64c368a /wear_ui.cpp
parente9605b8ca01fba6b0ed2d01677815882d6371a53 (diff)
downloadplatform-bootable-recovery-c89d1e7e2a6a8a07bb336db35db88f5452d8a51d.tar.gz
platform-bootable-recovery-c89d1e7e2a6a8a07bb336db35db88f5452d8a51d.tar.xz
platform-bootable-recovery-c89d1e7e2a6a8a07bb336db35db88f5452d8a51d.zip
Turn on -Wall for recovery modules
Turn on -Wall for all modules. Also remove the obsolete file_cmp() in apply_patch test and now() in wear_ui. The only exception is lib_edify due to the unused functions in the intermediate cpp files generated from the lex files. It will be handled in a seperate CL. Bug: 64939312 Test: mma, unit tests pass Change-Id: Ic53f76b60b6401ab20db3d98130d674c08e3702f
Diffstat (limited to 'wear_ui.cpp')
-rw-r--r--wear_ui.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/wear_ui.cpp b/wear_ui.cpp
index e4806718..85c8f835 100644
--- a/wear_ui.cpp
+++ b/wear_ui.cpp
@@ -39,13 +39,6 @@
39#include "common.h" 39#include "common.h"
40#include "device.h" 40#include "device.h"
41 41
42// Return the current time as a double (including fractions of a second).
43static double now() {
44 struct timeval tv;
45 gettimeofday(&tv, NULL);
46 return tv.tv_sec + tv.tv_usec / 1000000.0;
47}
48
49WearRecoveryUI::WearRecoveryUI() 42WearRecoveryUI::WearRecoveryUI()
50 : kProgressBarBaseline(RECOVERY_UI_PROGRESS_BAR_BASELINE), 43 : kProgressBarBaseline(RECOVERY_UI_PROGRESS_BAR_BASELINE),
51 kMenuUnusableRows(RECOVERY_UI_MENU_UNUSABLE_ROWS) { 44 kMenuUnusableRows(RECOVERY_UI_MENU_UNUSABLE_ROWS) {
@@ -167,7 +160,6 @@ void WearRecoveryUI::draw_screen_locked() {
167 // display from the bottom up, until we hit the top of the 160 // display from the bottom up, until we hit the top of the
168 // screen, the bottom of the menu, or we've displayed the 161 // screen, the bottom of the menu, or we've displayed the
169 // entire text buffer. 162 // entire text buffer.
170 int ty;
171 int row = (text_top_ + text_rows_ - 1) % text_rows_; 163 int row = (text_top_ + text_rows_ - 1) % text_rows_;
172 size_t count = 0; 164 size_t count = 0;
173 for (int ty = gr_fb_height() - char_height_ - kMarginHeight; ty > y + 2 && count < text_rows_; 165 for (int ty = gr_fb_height() - char_height_ - kMarginHeight; ty > y + 2 && count < text_rows_;