[all-commits] [llvm/llvm-project] 8fc87f: [libc][NFC] Couple of small warning fixes (#67847)

Mikhail R. Gadelha via All-commits all-commits at lists.llvm.org
Mon Oct 2 16:29:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8fc87f54a8004f0d73f5ce04c8a9f64823d83e80
      https://github.com/llvm/llvm-project/commit/8fc87f54a8004f0d73f5ce04c8a9f64823d83e80
  Author: Mikhail R. Gadelha <mikhail at igalia.com>
  Date:   2023-10-02 (Mon, 02 Oct 2023)

  Changed paths:
    M libc/src/__support/float_to_string.h
    M libc/src/__support/wctype_utils.h
    M libc/test/UnitTest/LibcTest.cpp
    M libc/test/src/__support/CPP/bitset_test.cpp
    M libc/test/src/__support/CPP/type_traits_test.cpp
    M libc/test/src/math/smoke/FrexpTest.h
    M libc/utils/MPFRWrapper/MPFRUtils.cpp

  Log Message:
  -----------
  [libc][NFC] Couple of small warning fixes (#67847)

This patch fixes a couple of warnings when compiling with gcc 13:

* CPP/type_traits_test.cpp: 'apply' overrides a member function but is
not marked 'override'
* UnitTest/LibcTest.cpp:98: control reaches end of non-void function
* MPFRWrapper/MPFRUtils.cpp:75: control reaches end of non-void function
* smoke/FrexpTest.h:92: backslash-newline at end of file
* __support/float_to_string.h:118: comparison of unsigned expression in ‘>= 0’ is always true
* test/src/__support/CPP/bitset_test.cpp:197: comparison of unsigned expression in ‘>= 0’ is always true

---------

Signed-off-by: Mikhail R. Gadelha <mikhail at igalia.com>




More information about the All-commits mailing list