[libcxx] r300575 - [test] Silence unused parameter/typedef warnings

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 18 12:51:58 PDT 2017


Sorry I've been meaning to enable `-Wunused-typedef" for a while but I
haven't had a chance to clean up the remaining occurrences

Thanks for the cleanup.

On Tue, Apr 18, 2017 at 12:44 PM, Casey Carter via cfe-commits <
cfe-commits at lists.llvm.org> wrote:

> Author: caseycarter
> Date: Tue Apr 18 13:44:33 2017
> New Revision: 300575
>
> URL: http://llvm.org/viewvc/llvm-project?rev=300575&view=rev
> Log:
> [test] Silence unused parameter/typedef warnings
>
> Modified:
>     libcxx/trunk/test/std/language.support/support.
> exception/except.nested/throw_with_nested.pass.cpp
>     libcxx/trunk/test/std/utilities/smartptr/unique.ptr/
> unique.ptr.class/unique.ptr.asgn/move_convert.runtime.pass.cpp
>     libcxx/trunk/test/std/utilities/smartptr/unique.ptr/
> unique.ptr.class/unique.ptr.ctor/default.pass.cpp
>
> Modified: libcxx/trunk/test/std/language.support/support.
> exception/except.nested/throw_with_nested.pass.cpp
> URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/
> language.support/support.exception/except.nested/throw_
> with_nested.pass.cpp?rev=300575&r1=300574&r2=300575&view=diff
> ============================================================
> ==================
> --- libcxx/trunk/test/std/language.support/support.
> exception/except.nested/throw_with_nested.pass.cpp (original)
> +++ libcxx/trunk/test/std/language.support/support.
> exception/except.nested/throw_with_nested.pass.cpp Tue Apr 18 13:44:33
> 2017
> @@ -113,7 +113,7 @@ int main()
>              std::throw_with_nested("String literal");
>              assert(false);
>          }
> -        catch (const char * s)
> +        catch (const char *)
>          {
>          }
>      }
>
> Modified: libcxx/trunk/test/std/utilities/smartptr/unique.ptr/
> unique.ptr.class/unique.ptr.asgn/move_convert.runtime.pass.cpp
> URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/
> utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.
> asgn/move_convert.runtime.pass.cpp?rev=300575&r1=300574&
> r2=300575&view=diff
> ============================================================
> ==================
> --- libcxx/trunk/test/std/utilities/smartptr/unique.ptr/
> unique.ptr.class/unique.ptr.asgn/move_convert.runtime.pass.cpp (original)
> +++ libcxx/trunk/test/std/utilities/smartptr/unique.ptr/
> unique.ptr.class/unique.ptr.asgn/move_convert.runtime.pass.cpp Tue Apr 18
> 13:44:33 2017
> @@ -81,11 +81,9 @@ void test_sfinae() {
>    using DB = NCConvertingDeleter<B[]>;
>    using UA = std::unique_ptr<A[]>;
>    using UAC = std::unique_ptr<const A[]>;
> -  using UB = std::unique_ptr<B[]>;
>    using UAD = std::unique_ptr<A[], DA>;
>    using UACD = std::unique_ptr<const A[], DAC>;
>
> -  using UBD = std::unique_ptr<B[], DB>;
>    { // cannot move from an lvalue
>      static_assert(std::is_assignable<UAC, UA&&>::value, "");
>      static_assert(!std::is_assignable<UAC, UA&>::value, "");
>
> Modified: libcxx/trunk/test/std/utilities/smartptr/unique.ptr/
> unique.ptr.class/unique.ptr.ctor/default.pass.cpp
> URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/
> utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.
> ctor/default.pass.cpp?rev=300575&r1=300574&r2=300575&view=diff
> ============================================================
> ==================
> --- libcxx/trunk/test/std/utilities/smartptr/unique.ptr/
> unique.ptr.class/unique.ptr.ctor/default.pass.cpp (original)
> +++ libcxx/trunk/test/std/utilities/smartptr/unique.ptr/
> unique.ptr.class/unique.ptr.ctor/default.pass.cpp Tue Apr 18 13:44:33 2017
> @@ -46,7 +46,7 @@ struct NonDefaultDeleter {
>  template <class ElemType>
>  void test_sfinae() {
>  #if TEST_STD_VER >= 11
> -  { // the constructor does not participate in overload resultion when
> +  { // the constructor does not participate in overload resolution when
>      // the deleter is a pointer type
>      using U = std::unique_ptr<ElemType, void (*)(void*)>;
>      static_assert(!std::is_default_constructible<U>::value, "");
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170418/3988194b/attachment.html>


More information about the cfe-commits mailing list