catchorg / catchorg/Catch2

Unknown #pragma warning '4800'

Open
#2,160 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
21.5k
Forks
3.5k
Avg merge
3d 16h
Merged PRs (30d)
2

Description

**Describe the bug**
With the warning `/w14619` enabled I am getting `# pragma warning: there is no warning number '4800'` on the line 2192 which says:
`#pragma warning(disable:4800) // Forcing result to true or false`

**Expected behavior**
There should be no warning shown.

**Reproduction steps**
Compile any example with on VS 2017 with the warning `/w14619` set.

**Platform information:**

- OS: Windows 10
- Compiler+version: **MSVC 19.16.27045.0 (VS 2017)**
- Catch version: **v2.13.4**

**Additional context**
On MSVC 19.27.29112.0 (VS 2019) this warning does not appear anymore.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.