Skip to content
Snippets Groups Projects
Commit 6859bcfa authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Botan: Fix MSVC warning


botan.cpp:35140: warning: C4297: 'Botan::bigint_sub2_rev' : function assumed not to throw an exception but does
The function is extern "C" and /EHc was specified

-EHsc (specified in Qt mkspecs) means that the compiler can assume that
extern "C" functions do not throw exceptions.

-EHs is equivalent, only without this assumption

Change-Id: I5eae79bfbd647c296626c03636775f6057faf385
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@digia.com>
parent d6919b15
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ win32 {
BOTAN_HAS_MUTEX_WIN32
win32-msvc* {
QMAKE_CXXFLAGS_EXCEPTIONS_ON = -EHs
QMAKE_CXXFLAGS += -wd4251 -wd4290 -wd4250
DEFINES += BOTAN_BUILD_COMPILER_IS_MSVC BOTAN_TARGET_OS_HAS_GMTIME_S _SCL_SECURE_NO_WARNINGS
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment