Fix for warning C4062 in boxed_number: enumerator ... in switch of enum ... is not handled

the warning is a false positive because all the posible combinations are
handled in the multiple switch at "go" function.
This commit is contained in:
Jose Rubio 2020-01-13 12:43:44 +01:00
parent df917f7c1d
commit 84df5918ce

View File

@ -49,6 +49,15 @@ namespace chaiscript
#pragma warning(disable : 4244 4018 4389 4146 4365 4267 4242)
#endif
//
// Disable the switch completeness warnings because they raise a false positive, in the
// operations.
//
#ifdef CHAISCRIPT_MSVC
#pragma warning(push)
#pragma warning(disable : 4062)
#endif
#ifdef __GNUC__
#pragma GCC diagnostic push