foonathan / type_safe

Zero overhead utilities for preventing bugs at compile time
https://type_safe.foonathan.net
MIT License
1.51k stars 122 forks source link

Failed to compile with MSVC #120

Closed Arthapz closed 3 years ago

Arthapz commented 3 years ago

Hi, i tried to compile standardese with MSVC and i got this error

cl : Command line warning D9025 : overriding '/W3' with '/W4'
cxtokenizer.cpp
C:\Users\jonat\standardese\external\cppast\external\type_safe\external\debug_assert\debug_assert.hpp(233) : error C2220: the following warning is treated as an error
C:\Users\jonat\standardese\external\cppast\external\type_safe\external\debug_assert\debug_assert.hpp(233) : error C2220: the following warning is treated as an error
C:\Users\jonat\standardese\external\cppast\external\type_safe\external\debug_assert\debug_assert.hpp(233) : error C2220: the following warning is treated as an error
C:\Users\jonat\standardese\external\cppast\external\type_safe\external\debug_assert\debug_assert.hpp(233) : error C2220: the following warning is treated as an error
C:\Users\jonat\standardese\external\cppast\external\type_safe\external\debug_assert\debug_assert.hpp(233) : warning C4702: unreachable code
C:\Users\jonat\standardese\external\cppast\external\type_safe\external\debug_assert\debug_assert.hpp(233) : warning C4702: unreachable code
C:\Users\jonat\standardese\external\cppast\external\type_safe\external\debug_assert\debug_assert.hpp(233) : warning C4702: unreachable code
C:\Users\jonat\standardese\external\cppast\external\type_safe\external\debug_assert\debug_assert.hpp(233) : warning C4702: unreachable code
C:\Users\jonat\standardese\external\cppast\external\type_safe\external\debug_assert\debug_assert.hpp(233) : warning C4702: unreachable code
NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1428~1.299\bin\Hostx64\x64\cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX64\x64\nmake.exe"' : return code '0x2'
foonathan commented 3 years ago

I think it is fixed now.