File tree 3 files changed +9
-5
lines changed
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 20
20
#include " qgsrastercalcnode.h"
21
21
22
22
#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
25
25
#endif
26
26
27
27
// don't redeclare malloc/free
Original file line number Diff line number Diff line change 36
36
// which doesn't in MSVC compiler
37
37
#define YY_NEVER_INTERACTIVE 1
38
38
39
+ #ifndef YY_NO_UNPUT
39
40
#define YY_NO_UNPUT // unused
41
+ #endif
40
42
41
43
#ifdef _MSC_VER
42
44
#define YY_NO_UNISTD_H
Original file line number Diff line number Diff line change @@ -135,10 +135,12 @@ IF (WIN32)
135
135
ENDIF (MSVC )
136
136
ENDIF (WIN32 )
137
137
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 )
140
142
SET_SOURCE_FILES_PROPERTIES (${CMAKE_BINARY_DIR} /src/gui/moc_qgisinterface.cxx PROPERTIES COMPILE_FLAGS "-w" )
141
- ENDIF (NOT MSVC )
143
+ ENDIF (MSVC )
142
144
143
145
#############################################################
144
146
# qgis_gui library
You can’t perform that action at this time.
0 commit comments