You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have the same situation in the Windows code, with conditional compilation to handle the Unix path separator which will never trigger. It looks like these branches were copypasted from the same code.
The low effort fix would be to simply remove these unused branches, however, the real fix would be to unify the Windows and Unix code because it's almost the same, it appears the Windows code only differs in having some character set conversion to deal with Windows versions without UTF-8 support, the rest of the code shouldn't be inside a preprocessor conditional.
The text was updated successfully, but these errors were encountered:
In this large block of code that compromises a single
#if defined(_WIN32) #else #endif
conditional:swanstation/src/common/byte_stream.cpp
Lines 692 to 1073 in 7a27436
In the
#else
branch:swanstation/src/common/byte_stream.cpp
Lines 904 to 1073 in 7a27436
You can see that there are
#if defined(_WIN32)
checks which will never be true:swanstation/src/common/byte_stream.cpp
Lines 944 to 964 in 7a27436
swanstation/src/common/byte_stream.cpp
Lines 992 to 994 in 7a27436
We have the same situation in the Windows code, with conditional compilation to handle the Unix path separator which will never trigger. It looks like these branches were copypasted from the same code.
The low effort fix would be to simply remove these unused branches, however, the real fix would be to unify the Windows and Unix code because it's almost the same, it appears the Windows code only differs in having some character set conversion to deal with Windows versions without UTF-8 support, the rest of the code shouldn't be inside a preprocessor conditional.
The text was updated successfully, but these errors were encountered: