Add (void) casts to operator new calls, to suppress warnings generated by [[nodiscard]].
This allows these tests to pass when compiled by MSVC++.
Differential D59621
[libcxx] [test] Add (void) casts to operator new calls, to suppress warnings generated by [[nodiscard]]. BillyONeal on Mar 20 2019, 4:48 PM. Authored by
Details
Add (void) casts to operator new calls, to suppress warnings generated by [[nodiscard]]. This allows these tests to pass when compiled by MSVC++.
Diff Detail Event TimelineComment Actions As an FYI, I committed this to subversion as r356632 since I haven't figured out the new git world order yet..... Comment Actions This broke all the build bots, so I reverted the SVN change. I thought the nodiscard-ness was tested elsewhere but I'm not sure about interaction between this and -faligned-allocation. Comment Actions I'd like to understand what's breaking on MSVC so we can address the problem properly -- but I won't push if you just want to skip the tests. |