Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
288cdf9a
Unverified
Commit
288cdf9a
authored
Aug 13, 2021
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
⚗
add -WX flag to MSVC builds
parent
fecb0185
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
test/src/unit-allocator.cpp
test/src/unit-allocator.cpp
+4
-0
test/src/unit-udt.cpp
test/src/unit-udt.cpp
+6
-0
No files found.
test/src/unit-allocator.cpp
View file @
288cdf9a
...
...
@@ -100,6 +100,9 @@ struct my_allocator : std::allocator<T>
std
::
allocator
<
T
>::
deallocate
(
p
,
n
);
}
// the code below warns about p in MSVC 2015 - this could be a bug
DOCTEST_MSVC_SUPPRESS_WARNING_PUSH
DOCTEST_MSVC_SUPPRESS_WARNING
(
4100
)
void
destroy
(
T
*
p
)
{
if
(
next_destroy_fails
)
...
...
@@ -110,6 +113,7 @@ struct my_allocator : std::allocator<T>
p
->~
T
();
}
DOCTEST_MSVC_SUPPRESS_WARNING_POP
template
<
class
U
>
struct
rebind
...
...
test/src/unit-udt.cpp
View file @
288cdf9a
...
...
@@ -809,6 +809,10 @@ TEST_CASE("an incomplete type does not trigger a compiler error in non-evaluated
static_assert
(
!
is_constructible_patched
<
json
,
incomplete
>::
value
,
""
);
}
// the code below warns about t in MSVC 2015 - this could be a bug
DOCTEST_MSVC_SUPPRESS_WARNING_PUSH
DOCTEST_MSVC_SUPPRESS_WARNING
(
4100
)
namespace
{
class
Evil
...
...
@@ -821,6 +825,8 @@ class Evil
int
m_i
=
0
;
};
DOCTEST_MSVC_SUPPRESS_WARNING_POP
void
from_json
(
const
json
&
/*unused*/
,
Evil
&
/*unused*/
)
{}
}
// namespace
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment