meson: add -Werror=empty-body to disallow `if(x);`
/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
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
Our infrastructure migration is complete. Please remember to update your SSH remote to point to ssh.gitlab.freedesktop.org; SSH to the old hostname will time out. You should not see any problems apart from that. Please let us know if you do have any other issues.
/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.