[Issue 3882] Unused result of pure functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 13 02:58:53 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=3882
--- Comment #26 from bearophile_hugs at eml.cc 2014-03-13 02:58:34 PDT ---
(In reply to comment #25)
> Commits pushed to master at https://github.com/D-Programming-Language/phobos
>
> https://github.com/D-Programming-Language/phobos/commit/1761de4a62e2e3bb632b44ac257738389ec88612
> Issue 3882: Inhibit more DMD warnings
>
> https://github.com/D-Programming-Language/phobos/commit/5154011dabf7ef48a47b1028f9b5537707beddcc
> Merge pull request #1991 from nordlow/warn-unused-returns
>
> Issue 3882: Inhibit more DMD warnings
It's not a good idea to Inhibit more DMD warnings introducing spurious
variables that could generate new "variable not used" warnings:
- std.math.sin(3.0);
+ const sin3 = std.math.sin(3.0);
- std.uni.isAlpha('A');
+ const iaa = std.uni.isAlpha('A');
A better fix is to use the cast(void) everywhere.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list