[all-commits] [llvm/llvm-project] 5a9bad: [Support] Fix warnings

kazutakahirata via All-commits all-commits at lists.llvm.org
Fri Mar 24 13:02:11 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5a9bad171be5dfdf9430a0f6cbff14d29ca54181
      https://github.com/llvm/llvm-project/commit/5a9bad171be5dfdf9430a0f6cbff14d29ca54181
  Author: Kazu Hirata <kazu at google.com>
  Date:   2023-03-24 (Fri, 24 Mar 2023)

  Changed paths:
    M llvm/unittests/Support/ScopedPrinterTest.cpp

  Log Message:
  -----------
  [Support] Fix warnings

This patch fixes:

  llvm/unittests/Support/ScopedPrinterTest.cpp:519:20: error: unused
  variable 'InfDouble' [-Werror,-Wunused-variable]

  llvm/unittests/Support/ScopedPrinterTest.cpp:520:16: error: unused
  variable 'NaNDouble' [-Werror,-Wunused-variable]

  llvm/unittests/Support/ScopedPrinterTest.cpp:516:15: error: unused
  variable 'NaNFloat' [-Werror,-Wunused-variable]

  llvm/unittests/Support/ScopedPrinterTest.cpp:515:19: error: unused
  variable 'InfFloat' [-Werror,-Wunused-variable]

Since commit fa56e362af475e0758cfb41c42f78db50da7235c has temporarily
disabled tests involving these constants, this patch simply comments
them out instead of removing them.




More information about the All-commits mailing list