diff --git a/services/surfaceflinger/DisplayDevice.cpp b/services/surfaceflinger/DisplayDevice.cpp index a1430b975..7e76ea0b6 100644 --- a/services/surfaceflinger/DisplayDevice.cpp +++ b/services/surfaceflinger/DisplayDevice.cpp @@ -180,7 +180,7 @@ status_t DisplayDevice::compositionComplete() const { return mDisplaySurface->compositionComplete(); } -void DisplayDevice::flip(const Region& dirty) const +void DisplayDevice::flip(const Region& dirty __unused) const { mFlinger->getRenderEngine().checkErrors(); diff --git a/services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp b/services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp index d7fef8c1e..ecab9cc11 100644 --- a/services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp +++ b/services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp @@ -244,7 +244,7 @@ void VirtualDisplaySurface::onFrameCommitted() { resetPerFrameState(); } -void VirtualDisplaySurface::dump(String8& result) const { +void VirtualDisplaySurface::dump(String8&) const { } status_t VirtualDisplaySurface::requestBuffer(int pslot, diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index 61af51faf..6419020e5 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -144,7 +144,7 @@ Layer::~Layer() { // callbacks // --------------------------------------------------------------------------- -void Layer::onLayerDisplayed(const sp& hw, +void Layer::onLayerDisplayed(const sp&, HWComposer::HWCLayerInterface* layer) { if (layer) { layer->onDisplayed(); @@ -418,7 +418,7 @@ void Layer::setPerFrameData(const sp& hw, layer.setBuffer(mActiveBuffer); } -void Layer::setAcquireFence(const sp& hw, +void Layer::setAcquireFence(const sp&, HWComposer::HWCLayerInterface& layer) { int fenceFd = -1; @@ -545,7 +545,7 @@ void Layer::onDraw(const sp& hw, const Region& clip) const } -void Layer::clearWithOpenGL(const sp& hw, const Region& clip, +void Layer::clearWithOpenGL(const sp& hw, const Region&, float red, float green, float blue, float alpha) const { RenderEngine& engine(mFlinger->getRenderEngine()); @@ -560,7 +560,7 @@ void Layer::clearWithOpenGL( } void Layer::drawWithOpenGL( - const sp& hw, const Region& clip) const { + const sp& hw, const Region&) const { const uint32_t fbHeight = hw->getHeight(); const State& s(getDrawingState()); diff --git a/services/surfaceflinger/LayerDim.cpp b/services/surfaceflinger/LayerDim.cpp index 4e82babdb..865e552a3 100644 --- a/services/surfaceflinger/LayerDim.cpp +++ b/services/surfaceflinger/LayerDim.cpp @@ -39,7 +39,7 @@ LayerDim::LayerDim(SurfaceFlinger* flinger, const sp& client, LayerDim::~LayerDim() { } -void LayerDim::onDraw(const sp& hw, const Region& clip) const +void LayerDim::onDraw(const sp& hw, const Region&) const { const State& s(getDrawingState()); if (s.alpha>0) { diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 943ed0221..774654e1d 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -190,7 +190,7 @@ SurfaceFlinger::~SurfaceFlinger() eglTerminate(display); } -void SurfaceFlinger::binderDied(const wp& who) +void SurfaceFlinger::binderDied(const wp&) { // the window manager died on us. prepare its eulogy. @@ -593,12 +593,12 @@ void SurfaceFlinger::signalRefresh() { } status_t SurfaceFlinger::postMessageAsync(const sp& msg, - nsecs_t reltime, uint32_t flags) { + nsecs_t reltime, uint32_t) { return mEventQueue.postMessage(msg, reltime); } status_t SurfaceFlinger::postMessageSync(const sp& msg, - nsecs_t reltime, uint32_t flags) { + nsecs_t reltime, uint32_t) { status_t res = mEventQueue.postMessage(msg, reltime); if (res == NO_ERROR) { msg->wait(); @@ -1695,7 +1695,7 @@ status_t SurfaceFlinger::removeLayer(const sp& layer) { return status_t(index); } -uint32_t SurfaceFlinger::peekTransactionFlags(uint32_t flags) { +uint32_t SurfaceFlinger::peekTransactionFlags(uint32_t) { return android_atomic_release_load(&mTransactionFlags); } @@ -2203,7 +2203,7 @@ status_t SurfaceFlinger::dump(int fd, const Vector& args) return NO_ERROR; } -void SurfaceFlinger::listLayersLocked(const Vector& args, size_t& index, +void SurfaceFlinger::listLayersLocked(const Vector&, size_t&, String8& result) const { const LayerVector& currentLayers = mCurrentState.layersSortedByZ; @@ -2242,7 +2242,7 @@ void SurfaceFlinger::dumpStatsLocked(const Vector& args, size_t& index } void SurfaceFlinger::clearStatsLocked(const Vector& args, size_t& index, - String8& result) + String8&) { String8 name; if (index < args.size()) { @@ -2626,7 +2626,7 @@ class GraphicProducerWrapper : public BBinder, public MessageHandler { * data and reply Parcel and forward them to the calling thread. */ virtual status_t transact(uint32_t code, - const Parcel& data, Parcel* reply, uint32_t flags) { + const Parcel& data, Parcel* reply, uint32_t) { this->code = code; this->data = &data; this->reply = reply; diff --git a/services/surfaceflinger/main_surfaceflinger.cpp b/services/surfaceflinger/main_surfaceflinger.cpp index b161480b3..90e3f7de9 100644 --- a/services/surfaceflinger/main_surfaceflinger.cpp +++ b/services/surfaceflinger/main_surfaceflinger.cpp @@ -27,7 +27,7 @@ using namespace android; -int main(int argc, char** argv) { +int main(int, char**) { // When SF is launched in its own process, limit the number of // binder threads to 4. ProcessState::self()->setThreadPoolMaxThreadCount(4);