1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:07:34 +00:00

IPCCompiler+WindowServer: Fix deleted function warning

It might be the case that we are passing non-movable/non-copyable things
through IPC. In this case, Clang will emit a warning as it can't
generate the requested default move/copy ctor for the IPC message.

To fix this, we use a `#pragma` to make the compiler silently ignore our
request.

The same was the case with the three-way comparison in `Screen`. Since
we don't use the three-way comparison operator anywhere else in our
codebase, we simply use the `==` operator instead.
This commit is contained in:
Daniel Bertalan 2021-07-05 19:00:43 +02:00 committed by Gunnar Beutner
parent f14a4994b0
commit b76ad3db90
2 changed files with 10 additions and 1 deletions

View file

@ -28,7 +28,7 @@ public:
return { location, { resolution.width() / scale_factor, resolution.height() / scale_factor } };
}
auto operator<=>(const Screen&) const = default;
bool operator==(const Screen&) const = default;
};
Vector<Screen> screens;