Warning re ignored return value
Steven Schveighoffer
schveiguy at gmail.com
Fri Aug 5 00:14:33 UTC 2022
On 8/4/22 7:39 PM, Don Allen wrote:
> Is there a way to request that dmd warn about instances where the return
> values of non-void functions are ignored? dmd appears not to do that by
> default and I checked the documentation of the command-line options and
> didn't see it (hopefully I missed it; it would be nice to have).
>
Not sure if it's implemented yet but there's @mustuse:
https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1038.md
-Steve
More information about the Digitalmars-d
mailing list