[all-commits] [llvm/llvm-project] 8dd77f: [Support] Fix warnings

Kazu Hirata via All-commits all-commits at lists.llvm.org
Tue Dec 19 12:57:25 PST 2023


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

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

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

This patch fixes:

  third-party/unittest/googletest/include/gtest/gtest.h:1379:11:
  error: comparison of integers of different signs: 'const int' and
  'const unsigned int' [-Werror,-Wsign-compare]

  llvm/unittests/Support/CommandLineTest.cpp:2294:3: note: in
  instantiation of function template specialization
  'testing::internal::EqHelper::Compare<int, unsigned int, nullptr>'
  requested here


  Commit: 8c296d58c50902e367f64417948d6e2d43828f36
      https://github.com/llvm/llvm-project/commit/8c296d58c50902e367f64417948d6e2d43828f36
  Author: Kazu Hirata <kazu at google.com>
  Date:   2023-12-19 (Tue, 19 Dec 2023)

  Changed paths:
    M clang/lib/Interpreter/CodeCompletion.cpp

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

This patch fixes:

  clang/lib/Interpreter/CodeCompletion.cpp:126:35: error: 'startswith'
  is deprecated: Use starts_with instead
  [-Werror,-Wdeprecated-declarations]

  clang/lib/Interpreter/CodeCompletion.cpp:189:42: error: 'startswith'
  is deprecated: Use starts_with instead
  [-Werror,-Wdeprecated-declarations]


Compare: https://github.com/llvm/llvm-project/compare/35b366ace73d...8c296d58c509


More information about the All-commits mailing list