# translate-c: lower discards differently · gitcafe/zig

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

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

Visibility: public

Requested revision: f8a9bc57ce1a2a5a1b90e9a33501b64f2dd79019

Requested commit: f8a9bc57ce1a2a5a1b90e9a33501b64f2dd79019

Commit: f8a9bc57ce1a2a5a1b90e9a33501b64f2dd79019

Tree: efe1f2ac3ba62ea641687bb82c927826ef72cee1

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
translate-c: lower discards differently

This makes translate-c lower discards as `_ = @TypeOf(foo);` to avoid
tripping the "pointless discard" error.

Ideally, translate-c would avoid emitting pointless discards, in which
case this commit can be reverted, however, that is a separate
enhancement.

```

## Parents

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

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