build errors after "meson: add -Werror=empty-body to disallow `if(x);`"
I get the following errors after "meson: add -Werror=empty-body to disallow if(x);
" commit:
Full build log:
https://launchpadlibrarian.net/448358470/buildlog_ubuntu-bionic-amd64.mesa_19.3git1910250730.e137b3oibaf~b_BUILDING.txt.gz
../src/gallium/state_trackers/nine/device9.c: In function ‘NineDevice9_ctor’:
../src/gallium/state_trackers/nine/device9.c:296:49: error: suggest braces around empty body in an ‘if’ statement [-Werror=empty-body]
DBG("\033[1;32mCSMT is active\033[0m\n");
^
../src/gallium/state_trackers/nine/device9.c: In function ‘create_zs_or_rt_surface’:
../src/gallium/state_trackers/nine/device9.c:1221:87: error: suggest braces around empty body in an ‘if’ statement [-Werror=empty-body]
DBG("FIXME Used shared handle! This option isn't probably handled correctly!\n");
^
../src/gallium/state_trackers/nine/device9.c: In function ‘NineDevice9_UpdateSurface’:
../src/gallium/state_trackers/nine/device9.c:1307:53: error: suggest braces around empty body in an ‘if’ statement [-Werror=empty-body]
pSourceRect->right, pSourceRect->bottom);
^
../src/gallium/state_trackers/nine/device9.c:1309:68: error: suggest braces around empty body in an ‘if’ statement [-Werror=empty-body]
DBG("pDestPoint = (%u,%u)\n", pDestPoint->x, pDestPoint->y);
^
../src/gallium/state_trackers/nine/device9.c: In function ‘NineDevice9_StretchRect’:
../src/gallium/state_trackers/nine/device9.c:1588:53: error: suggest braces around empty body in an ‘if’ statement [-Werror=empty-body]
pSourceRect->right, pSourceRect->bottom);
^
../src/gallium/state_trackers/nine/device9.c:1591:49: error: suggest braces around empty body in an ‘if’ statement [-Werror=empty-body]
pDestRect->right, pDestRect->bottom);
^
../src/gallium/state_trackers/nine/device9.c: In function ‘NineDevice9_ColorFill’:
../src/gallium/state_trackers/nine/device9.c:1786:41: error: suggest braces around empty body in an ‘if’ statement [-Werror=empty-body]
pRect->right, pRect->bottom);
^
../src/gallium/state_trackers/nine/device9.c: In function ‘NineDevice9_CreateOffscreenPlainSurface’:
../src/gallium/state_trackers/nine/device9.c:1864:43: error: suggest braces around empty body in an ‘if’ statement [-Werror=empty-body]
DBG("Failed to create surface.\n");
^
cc1: some warnings being treated as errors