[all-commits] [llvm/llvm-project] c8a23e: [NFC][Driver] Fix -Wdangling-else warning

Michael Platings via All-commits all-commits at lists.llvm.org
Thu May 18 13:19:37 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c8a23ec0cbac460dbbefb6683cdbed49e5472086
      https://github.com/llvm/llvm-project/commit/c8a23ec0cbac460dbbefb6683cdbed49e5472086
  Author: Michael Platings <michael.platings at arm.com>
  Date:   2023-05-18 (Thu, 18 May 2023)

  Changed paths:
    M clang/unittests/Driver/DXCModeTest.cpp

  Log Message:
  -----------
  [NFC][Driver] Fix -Wdangling-else warning

GCC emits this warning because the EXPECT_STREQ macro contains an
if-else statement:

  warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else]




More information about the All-commits mailing list