digitalmars.D - Warning re ignored return value
- Don Allen (6/6) Aug 04 2022 Is there a way to request that dmd warn about instances where the
- Steven Schveighoffer (4/9) Aug 04 2022 Not sure if it's implemented yet but there's @mustuse:
- max haughton (3/13) Aug 04 2022 It's implemented.
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). /Don
Aug 04 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
Aug 04 2022
On Friday, 5 August 2022 at 00:14:33 UTC, Steven Schveighoffer wrote:On 8/4/22 7:39 PM, Don Allen wrote:It's implemented.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
Aug 04 2022