Bug 22931 – importC: Error: `0` has no effect

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-03-25T12:19:23Z
Last change time
2022-03-30T01:13:31Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
duser

Comments

Comment #0 by duser — 2022-03-25T12:19:23Z
void fn() { 0; } perhaps this error could be relaxed for importC
Comment #1 by dlang-bot — 2022-03-29T05:04:29Z
@WalterBright created dlang/dmd pull request #13912 "fix Issue 22931 - importC: Error: 0 has no effect" fixing this issue: - fix Issue 22931 - importC: Error: 0 has no effect https://github.com/dlang/dmd/pull/13912
Comment #2 by dlang-bot — 2022-03-30T01:13:31Z
dlang/dmd pull request #13912 "fix Issue 22931 - importC: Error: 0 has no effect" was merged into master: - 36783b163ea278956c55c2ebe8be6587a3e36a80 by Walter Bright: fix Issue 22931 - importC: Error: 0 has no effect https://github.com/dlang/dmd/pull/13912