Skip to content

Commit

Permalink
Move the suppression to the test
Browse files Browse the repository at this point in the history
  • Loading branch information
anjiang committed Oct 10, 2023
1 parent 3fddbf5 commit 55c7167
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions stl/inc/xstring
Original file line number Diff line number Diff line change
Expand Up @@ -2730,10 +2730,7 @@ private:

if constexpr (_Can_construct_by_copy) {
const auto _Data = _My_data._Myptr();
#pragma warning(push)
#pragma warning(disable : 4365) // suppress the warning from signedness mismatch in assignment
_STD _Copy_n_unchecked4(_STD move(_First), _Count, _Data);
#pragma warning(pop)
_My_data._Mysize = _Count;
_Data[_Count] = _Elem();
} else {
Expand Down
2 changes: 2 additions & 0 deletions tests/std/tests/P1206R7_string_from_range/test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#pragma warning(disable : 4365) // conversion from 'X' to 'Y', signed/unsigned mismatch

#include <algorithm>
#include <array>
#include <cassert>
Expand Down

0 comments on commit 55c7167

Please sign in to comment.