commit | 8d43e2b2ded0fe3c82d49561cdab9f208f9e64b6 | [log] [tgz] |
---|---|---|
author | Eric Engestrom <eric.engestrom@intel.com> | Mon Sep 23 17:21:20 2019 +0100 |
committer | Eric Engestrom <eric.engestrom@intel.com> | Thu Oct 24 14:54:09 2019 +0100 |
tree | 735e6a15646d2aac3955d9f6fef961936b094a22 | |
parent | 1177151b6d9312d6c72147f84261c3694aebdfaf [diff] |
meson: add -Werror=empty-body to disallow `if(x);` This would have prevented a bug in MR 2058 [1]; with that MR fixed, nothing else uses empty-body blocks, so let's just forbid them altogether. [1] https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2058#note_237880 Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>