[all-commits] [llvm/llvm-project] c20d81: [libc++] Add missing [[maybe_unused]] attribute in...

Louis Dionne via All-commits all-commits at lists.llvm.org
Tue Jun 20 08:25:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c20d81bd63b0cf1060f85c749581d023de2a9211
      https://github.com/llvm/llvm-project/commit/c20d81bd63b0cf1060f85c749581d023de2a9211
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2023-06-20 (Tue, 20 Jun 2023)

  Changed paths:
    M libcxx/test/std/utilities/format/format.range/format.range.fmtdef/format.pass.cpp
    M libcxx/test/std/utilities/format/format.range/format.range.fmtmap/format.pass.cpp
    M libcxx/test/std/utilities/format/format.range/format.range.fmtset/format.pass.cpp
    M libcxx/test/std/utilities/format/format.range/format.range.formatter/format.pass.cpp
    M libcxx/test/std/utilities/format/format.tuple/format.pass.cpp

  Log Message:
  -----------
  [libc++] Add missing [[maybe_unused]] attribute in format tests

Otherwise, Clang complains about format_ctx being unused in the tests
when exceptions are disabled in Freestanding mode. I don't know why it
doesn't complain not in freestanding mode.

Differential Revision: https://reviews.llvm.org/D153301




More information about the All-commits mailing list