Skip to content

meson: add -Werror=empty-body to disallow `if(x);`

Eric Engestrom requested to merge eric/mesa:meson-empty-body into master

/cc @daenzer @jekstrand

This would have prevented !2058 (comment 237880); with that MR fixed, nothing else uses empty-body blocks, so let's just forbid them altogether.

Edited by Eric Engestrom

Merge request reports