[all-commits] [llvm/llvm-project] c50de5: [flang] Fix a warning

Kazu Hirata via All-commits all-commits at lists.llvm.org
Thu Dec 21 10:30:51 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c50de57feb2b824d789fe3bc4e0d24c5bfc266ea
      https://github.com/llvm/llvm-project/commit/c50de57feb2b824d789fe3bc4e0d24c5bfc266ea
  Author: Kazu Hirata <kazu at google.com>
  Date:   2023-12-21 (Thu, 21 Dec 2023)

  Changed paths:
    M flang/lib/Optimizer/Transforms/StackArrays.cpp

  Log Message:
  -----------
  [flang] Fix a warning

This patch fixes:

  flang/lib/Optimizer/Transforms/StackArrays.cpp:452:7: error:
  ignoring return value of function declared with 'nodiscard'
  attribute [-Werror,-Wunused-result]




More information about the All-commits mailing list