internal: iso C++ prohibits anonymous structs (#10955)
turn on -Wpedantic and name the anonymous struct.
This commit is contained in:
parent
d23ed852fc
commit
54369adffa
6 changed files with 33 additions and 32 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue