Skip to content

Commit 5f87bd8

Browse files
committed
msvc: suppress some warnings
1 parent 177a017 commit 5f87bd8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,11 +377,15 @@ IF (PEDANTIC)
377377
SET(_warnings "${_warnings} /wd4244 ") # conversion from '...' to '...' possible loss of data
378378
SET(_warnings "${_warnings} /wd4251 ") # needs to have dll-interface to be used by clients of class (occurs in Qt template classes)
379379
SET(_warnings "${_warnings} /wd4275 ") # non dll-interface class '...' used as base for dll-interface class '...'
380+
SET(_warnings "${_warnings} /wd4456 ") # declaration of '...' hides previous local declaration
381+
SET(_warnings "${_warnings} /wd4457 ") # declaration of '...' hides a function parameter
382+
SET(_warnings "${_warnings} /wd4458 ") # declaration of '...' hides class member
380383
SET(_warnings "${_warnings} /wd4505 ") # unreferenced local function has been removed (QgsRasterDataProvider::extent)
381384
SET(_warnings "${_warnings} /wd4510 ") # default constructor could not be generated (sqlite3_index_info, QMap)
382385
SET(_warnings "${_warnings} /wd4512 ") # assignment operator could not be generated (sqlite3_index_info)
383386
SET(_warnings "${_warnings} /wd4610 ") # user defined constructor required (sqlite3_index_info)
384387
SET(_warnings "${_warnings} /wd4706 ") # assignment within conditional expression (pal)
388+
SET(_warnings "${_warnings} /wd4714 ") # function '...' marked as __forceinline not inlined (QString::toLower/toUpper/trimmed)
385389
SET(_warnings "${_warnings} /wd4800 ") # 'int' : forcing value to bool 'true' or 'false' (performance warning)
386390
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${_warnings}")
387391
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_warnings}")

0 commit comments

Comments
 (0)