Skip to content

Commit f5db252

Browse files
authored
Merge pull request #497 from vadz/fix-msvc-build
Fix unreachable statement warning from MSVC after ICC warning fix
2 parents b77c773 + 0e998d1 commit f5db252

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Release/include/cpprest/json.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,12 @@ namespace json
13831383
return m_value == other.m_value;
13841384
}
13851385
__assume(0);
1386+
// Absence of this return statement provokes a warning from Intel
1387+
// compiler, but its presence results in a warning from MSVC, so
1388+
// we have to resort to conditional compilation to keep both happy.
1389+
#ifdef __INTEL_COMPILER
13861390
return false;
1391+
#endif
13871392
}
13881393

13891394
private:

0 commit comments

Comments
 (0)