[all-commits] [llvm/llvm-project] d270d3: [mlir][flang] Fix -Wunused-result after D146785 (NFC)

Jie Fu via All-commits all-commits at lists.llvm.org
Sun Apr 2 01:31:18 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d270d3638b048dff8845c604a447180852c7edcf
      https://github.com/llvm/llvm-project/commit/d270d3638b048dff8845c604a447180852c7edcf
  Author: Jie Fu <jiefu at tencent.com>
  Date:   2023-04-02 (Sun, 02 Apr 2023)

  Changed paths:
    M flang/lib/Frontend/FrontendActions.cpp
    M flang/tools/bbc/bbc.cpp
    M flang/tools/tco/tco.cpp
    M mlir/examples/toy/Ch3/toyc.cpp
    M mlir/examples/toy/Ch4/toyc.cpp
    M mlir/examples/toy/Ch5/toyc.cpp
    M mlir/examples/toy/Ch6/toyc.cpp
    M mlir/examples/toy/Ch7/toyc.cpp

  Log Message:
  -----------
  [mlir][flang] Fix -Wunused-result after D146785 (NFC)

/data/llvm-project/mlir/examples/toy/Ch4/toyc.cpp:119:5: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
    applyPassManagerCLOptions(pm);
    ^~~~~~~~~~~~~~~~~~~~~~~~~ ~~
1 error generated.

/data/llvm-project/flang/lib/Frontend/FrontendActions.cpp:669:3: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
  mlir::applyPassManagerCLOptions(pm);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
1 error generated.




More information about the All-commits mailing list