diff options
author | Chih-Hung Hsieh <chh@google.com> | 2017-11-14 16:05:46 -0800 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2017-12-01 10:37:19 -0800 |
commit | 1f601b1d7d5f94c6f8f7850e14d1b88e7fb9a775 (patch) | |
tree | c5b727ec0b0476d83bc8c35bfc44372803163b47 /modules/hwcomposer/hwcomposer.cpp | |
parent | 49cf86194541314ec6e42a0ef607d04cd39c36c4 (diff) |
Use -Werror in hardware/libhardware/modules
* Remove unused local variables.
* Remove or comment out unused static functions.
* Fix trivial bugs found by unused value warnings.
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I99389b883c89551850180d25241a35a40bb77b26
Diffstat (limited to 'modules/hwcomposer/hwcomposer.cpp')
-rw-r--r-- | modules/hwcomposer/hwcomposer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/hwcomposer/hwcomposer.cpp b/modules/hwcomposer/hwcomposer.cpp index 31e362af..cc0d873a 100644 --- a/modules/hwcomposer/hwcomposer.cpp +++ b/modules/hwcomposer/hwcomposer.cpp @@ -55,6 +55,7 @@ hwc_module_t HAL_MODULE_INFO_SYM = { /*****************************************************************************/ +#if 0 static void dump_layer(hwc_layer_1_t const* l) { ALOGD("\ttype=%d, flags=%08x, handle=%p, tr=%02x, blend=%04x, {%d,%d,%d,%d}, {%d,%d,%d,%d}", l->compositionType, l->flags, l->handle, l->transform, l->blending, @@ -67,6 +68,7 @@ static void dump_layer(hwc_layer_1_t const* l) { l->displayFrame.right, l->displayFrame.bottom); } +#endif static int hwc_prepare(hwc_composer_device_1_t * /*dev*/, size_t /*numDisplays*/, hwc_display_contents_1_t** displays) { |