Stop silencing 'throw' warnings in MSVC
Warning C4290 informs users, that MSVC ignores throw specification. This is very good warning, because 'throw' specifications were faulty design and got deprecated in C++11 and REMOVED from the language in C++20. Throw specifications were replaced by much better 'noexcept' keyword, which allows for compile-time checks, unlike 'throw', which might silently inject exception 'std::unexpected'.
This commit is contained in:
parent
bbf4e80ac1
commit
475e315943
2 changed files with 0 additions and 2 deletions
|
@ -22,7 +22,6 @@
|
|||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning ( disable : 4786 )
|
||||
#pragma warning ( disable : 4290 )
|
||||
#endif
|
||||
|
||||
#ifndef DOSBOX_PROGRAMS_H
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning ( disable : 4786 )
|
||||
#pragma warning ( disable : 4290 )
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue