[all-commits] [llvm/llvm-project] d28193: [libc++][test] Add `void` cast to a discarded call...

A. Jiang via All-commits all-commits at lists.llvm.org
Tue Aug 4 06:59:57 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d28193fa1ff64027cc5547355e9d70785268aec8
      https://github.com/llvm/llvm-project/commit/d28193fa1ff64027cc5547355e9d70785268aec8
  Author: A. Jiang <de34 at live.cn>
  Date:   2026-08-04 (Tue, 04 Aug 2026)

  Changed paths:
    M libcxx/test/std/depr/depr.c.headers/math_h.pass.cpp

  Log Message:
  -----------
  [libc++][test] Add `void` cast to a discarded call to `remquo` (#213849)

For calls to `remquo`, the return values are generally expected to be
used, while it is rare to only use the value written via the pointer
parameter. Moreover, some implementors already planned to apply
`[[nodiscard]]` to `remquo`, see also https://llvm.org/PR171763. As a
result, it is perhaps better to add `void` cast to the discarded call to
`remquo` in the test file.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list