X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fredraw_fixer.cpp;h=94964af3939846bd8ab5ccabee74cfc2feb76e4c;hb=340fc201bd6eaabc6b8df2f25bed70aca469967c;hp=c9b5112038489fce8b7a75cfd205eaca9d1dcd17;hpb=bece4bf4c95c328c1630271cc0a41c293d4266f3;p=staging%2Fwindowmanager.git diff --git a/src/redraw_fixer.cpp b/src/redraw_fixer.cpp index c9b5112..94964af 100644 --- a/src/redraw_fixer.cpp +++ b/src/redraw_fixer.cpp @@ -1,6 +1,18 @@ -// -// Created by mfritzsc on 9/11/17. -// +/* + * Copyright (C) 2017 Mentor Graphics Development (Deutschland) GmbH + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ #include "wayland.hpp" @@ -27,9 +39,9 @@ struct App { void try_fix(uint32_t surface_id); }; -void controller_hooks::surface_created(uint32_t surface_id) {} +void controller_hooks::surface_created(uint32_t /*surface_id*/) {} -void controller_hooks::surface_removed(uint32_t surface_id) {} +void controller_hooks::surface_removed(uint32_t /*surface_id*/) {} void controller_hooks::surface_visibility(uint32_t surface_id, uint32_t v) { this->app->surface_visibility(surface_id, v); @@ -66,9 +78,10 @@ App::App() : chooks{this}, display{new wl::display}, controller{}, outputs{} { this->outputs.back()->proxy.get()))); }); - for (int i : {1, 2, 3}) + for (int i : {1, 2, 3}) { this->display->roundtrip(); } +} void App::commit() { this->controller->commit_changes(); @@ -102,13 +115,14 @@ void App::try_fix(uint32_t surface_id) { } // namespace wm -int main(int argc, char **argv) { +int main(int /*argc*/, char ** /*argv*/) { wm::App app; if (!app.display->ok()) { fputs("Could not init wayland display\n", stderr); return 1; } - while (app.display->dispatch() != -1) + while (app.display->dispatch() != -1) { ; + } return 0; }