Skip to content

Commit e90efda

Browse files
committedDec 29, 2018
Avoid build warnings on Windows caused by external dependancies
1 parent b9658b1 commit e90efda

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,13 +480,15 @@ IF (PEDANTIC)
480480
ENDIF (NOT USING_NMAKE AND NOT USING_NINJA)
481481

482482
# disable warnings
483+
SET(_warnings "${_warnings} /wd4091 ") # 'typedef': ignored on left of '' when no variable is declared (occurs in MS DbgHelp.h header)
483484
SET(_warnings "${_warnings} /wd4100 ") # unused formal parameters
484485
SET(_warnings "${_warnings} /wd4127 ") # constant conditional expressions (used in Qt template classes)
485486
SET(_warnings "${_warnings} /wd4190 ") # 'identifier' has C-linkage specified, but returns UDT 'identifier2' which is incompatible with C
486487
SET(_warnings "${_warnings} /wd4231 ") # nonstandard extension used : 'identifier' before template explicit instantiation (used in Qt template classes)
487488
SET(_warnings "${_warnings} /wd4244 ") # conversion from '...' to '...' possible loss of data
488489
SET(_warnings "${_warnings} /wd4251 ") # needs to have dll-interface to be used by clients of class (occurs in Qt template classes)
489490
SET(_warnings "${_warnings} /wd4275 ") # non dll-interface class '...' used as base for dll-interface class '...'
491+
SET(_warnings "${_warnings} /wd4290 ") # c++ exception specification ignored except to indicate a function is not __declspec(nothrow) (occurs in sip generated bindings)
490492
SET(_warnings "${_warnings} /wd4456 ") # declaration of '...' hides previous local declaration
491493
SET(_warnings "${_warnings} /wd4457 ") # declaration of '...' hides a function parameter
492494
SET(_warnings "${_warnings} /wd4458 ") # declaration of '...' hides class member

0 commit comments

Comments
 (0)
Please sign in to comment.