# blocks check that their statements are void · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/c6605cba8375871a145896f9cf1090e9c823214a)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: c6605cba8375871a145896f9cf1090e9c823214a

Requested commit: c6605cba8375871a145896f9cf1090e9c823214a

Commit: c6605cba8375871a145896f9cf1090e9c823214a

Tree: f6309057804dc9fd6d5fa10feafb9d8f6a44a713

Author: Josh Wolfe

Committer: Josh Wolfe

## Message

```
blocks check that their statements are void

closes #291

This changes the error message "return value ignored" to "expression value is ignored".
This is because this error also applies to {1;}, which has no function calls.

Also fix ignored expression values in std and test.
This caught a bug in debug.readAllocBytes where an early Eof error would have been missed.
See #219.

```

## Parents

- [6de33ded81981554ccffc3ecbfcd5b0f628cf502](https://git.cafe/gitcafe/zig/commit/6de33ded81981554ccffc3ecbfcd5b0f628cf502?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/c6605cba8375871a145896f9cf1090e9c823214a?format=markdown)
