From 646f54105018e99ef4a30ee41f01f7d1ab66c38e Mon Sep 17 00:00:00 2001 From: Jesse Hall Date: Thu, 7 Aug 2014 22:19:07 -0700 Subject: [PATCH] surfaceflinger: fix -Wmismatched-tags warnings warning: struct 'HWComposer' was previously declared as a class [-Wmismatched-tags] warning: class 'DisplayInfo' was previously declared as a struct [-Wmismatched-tags] Change-Id: I13db9f8aab3a957ce8ff8d64598dae1807d6fe7e --- include/gui/ISurfaceComposer.h | 2 +- services/surfaceflinger/DisplayDevice.h | 2 +- services/surfaceflinger/DisplayHardware/HWComposer.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/gui/ISurfaceComposer.h b/include/gui/ISurfaceComposer.h index 9f1937b57..d0031fb3d 100644 --- a/include/gui/ISurfaceComposer.h +++ b/include/gui/ISurfaceComposer.h @@ -38,7 +38,7 @@ namespace android { class ComposerState; class DisplayState; -class DisplayInfo; +struct DisplayInfo; class IDisplayEventConnection; class IMemoryHeap; class Rect; diff --git a/services/surfaceflinger/DisplayDevice.h b/services/surfaceflinger/DisplayDevice.h index d3f784a74..8695a44ec 100644 --- a/services/surfaceflinger/DisplayDevice.h +++ b/services/surfaceflinger/DisplayDevice.h @@ -37,7 +37,7 @@ struct ANativeWindow; namespace android { -class DisplayInfo; +struct DisplayInfo; class DisplaySurface; class IGraphicBufferProducer; class Layer; diff --git a/services/surfaceflinger/DisplayHardware/HWComposer.h b/services/surfaceflinger/DisplayHardware/HWComposer.h index 5cb56a0f4..a62ac5c65 100644 --- a/services/surfaceflinger/DisplayHardware/HWComposer.h +++ b/services/surfaceflinger/DisplayHardware/HWComposer.h @@ -196,7 +196,7 @@ public: * This behaves more or less like a forward iterator. */ class LayerListIterator { - friend struct HWComposer; + friend class HWComposer; HWCLayer* const mLayerList; size_t mIndex;