File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 2020 #include " qgsrastercalcnode.h"
2121
2222#ifdef _MSC_VER
23- # pragma warnings ( disable: 4065 ) // switch statement contains 'default' but no 'case' labels
24- # pragma warnings ( disable: 4701 ) // Potentially uninitialized local variable 'name' used
23+ # pragma warning ( disable: 4065 ) // switch statement contains 'default' but no 'case' labels
24+ # pragma warning ( disable: 4701 ) // Potentially uninitialized local variable 'name' used
2525#endif
2626
2727 // don't redeclare malloc/free
Original file line number Diff line number Diff line change 3636// which doesn't in MSVC compiler
3737#define YY_NEVER_INTERACTIVE 1
3838
39+ #ifndef YY_NO_UNPUT
3940#define YY_NO_UNPUT // unused
41+ #endif
4042
4143#ifdef _MSC_VER
4244#define YY_NO_UNISTD_H
Original file line number Diff line number Diff line change @@ -135,10 +135,12 @@ IF (WIN32)
135135 ENDIF (MSVC )
136136ENDIF (WIN32 )
137137
138- IF (NOT MSVC )
139- # disable deprecation warnings for qgisinterface (re-exporting deprecated methods)
138+ # disable deprecation warnings for qgisinterface (re-exporting deprecated methods)
139+ IF (MSVC )
140+ SET_SOURCE_FILES_PROPERTIES (${CMAKE_BINARY_DIR} /src/gui/moc_qgisinterface.cxx PROPERTIES COMPILE_FLAGS "-wd4996" )
141+ ELSE (MSVC )
140142 SET_SOURCE_FILES_PROPERTIES (${CMAKE_BINARY_DIR} /src/gui/moc_qgisinterface.cxx PROPERTIES COMPILE_FLAGS "-w" )
141- ENDIF (NOT MSVC )
143+ ENDIF (MSVC )
142144
143145#############################################################
144146# qgis_gui library
You can’t perform that action at this time.
0 commit comments