[libcxx-commits] [libcxx] ca62b86 - [libc++] NFC: Remove warning about non-void function returning void

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 2 05:25:53 PST 2020


Author: Louis Dionne
Date: 2020-11-02T08:25:44-05:00
New Revision: ca62b8673b0ac1c8e938d82e88e2f98ac03ecdcd

URL: https://github.com/llvm/llvm-project/commit/ca62b8673b0ac1c8e938d82e88e2f98ac03ecdcd
DIFF: https://github.com/llvm/llvm-project/commit/ca62b8673b0ac1c8e938d82e88e2f98ac03ecdcd.diff

LOG: [libc++] NFC: Remove warning about non-void function returning void

Added: 
    

Modified: 
    libcxx/test/libcxx/utilities/any/allocator.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/libcxx/utilities/any/allocator.pass.cpp b/libcxx/test/libcxx/utilities/any/allocator.pass.cpp
index 9de8c5e7edff..7891db665097 100644
--- a/libcxx/test/libcxx/utilities/any/allocator.pass.cpp
+++ b/libcxx/test/libcxx/utilities/any/allocator.pass.cpp
@@ -77,7 +77,7 @@ namespace std {
     using propagate_on_container_move_assignment = std::true_type;
     using is_always_equal = std::true_type;
 
-    Small* allocate(std::size_t) { assert(false); }
+    Small* allocate(std::size_t) { assert(false); return nullptr; }
 
     template <typename ...Args>
     void construct(Small* p, Args&& ...args) {


        


More information about the libcxx-commits mailing list