mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-02-07 10:19:57 +08:00
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:
parent
df917f7c1d
commit
84df5918ce
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user