internal: iso C++ prohibits anonymous structs (#10955)

turn on -Wpedantic and name the anonymous struct.
This commit is contained in:
Tom Englund 2025-07-07 16:18:06 +02:00 committed by GitHub
parent d23ed852fc
commit 54369adffa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 33 additions and 32 deletions

View file

@ -15,7 +15,7 @@ CViewportResource::CViewportResource(SP<CWpViewport> resource_, SP<CWLSurfaceRes
return;
}
m_surface->m_pending.updated.viewport = true;
m_surface->m_pending.updated.bits.viewport = true;
if (x == -1 && y == -1) {
m_surface->m_pending.viewport.hasDestination = false;
@ -37,7 +37,7 @@ CViewportResource::CViewportResource(SP<CWpViewport> resource_, SP<CWLSurfaceRes
return;
}
m_surface->m_pending.updated.viewport = true;
m_surface->m_pending.updated.bits.viewport = true;
double x = wl_fixed_to_double(fx), y = wl_fixed_to_double(fy), w = wl_fixed_to_double(fw), h = wl_fixed_to_double(fh);