warning C4068: unknown pragma 'GCC' on MSVC/cl #2924
Labels
confirmed
kind: bug
platform: visual studio
related to MSVC
release item: 🔨 further change
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
What is the issue you have?
When compiling with MSVC, The following warnings are created:
Please describe the steps to reproduce the issue.
json.hpp
withcl
Can you provide a small but working code example?
What is the expected behavior?
No warning should appear.
And what is the actual behavior instead?
MSVC warning C4068 appears.
Which compiler and operating system are you using?
cl /?
,Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29111 for x86
using the Developer Command Prompt for VS 2019.Which version of the library did you use?
develop
branchIf you experience a compilation error: can you compile and run the unit tests?
Workaround:
Adding
to the top of either file disables the warning, or wrap all
#pragma GCC ...
s in#if defined(__clang__)
.The text was updated successfully, but these errors were encountered: