Skip to content

Commit

Permalink
fix msvc fixes
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15213 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Feb 19, 2011
1 parent 67081a4 commit 9f135b8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/analysis/raster/qgsrastercalcparser.yy
Expand Up @@ -20,8 +20,8 @@
#include "qgsrastercalcnode.h"

#ifdef _MSC_VER
# pragma warnings( disable: 4065 ) // switch statement contains 'default' but no 'case' labels
# pragma warnings( disable: 4701 ) // Potentially uninitialized local variable 'name' used
# pragma warning( disable: 4065 ) // switch statement contains 'default' but no 'case' labels
# pragma warning( disable: 4701 ) // Potentially uninitialized local variable 'name' used
#endif

// don't redeclare malloc/free
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgssearchstringlexer.ll
Expand Up @@ -36,7 +36,9 @@
// which doesn't in MSVC compiler
#define YY_NEVER_INTERACTIVE 1

#ifndef YY_NO_UNPUT
#define YY_NO_UNPUT // unused
#endif

#ifdef _MSC_VER
#define YY_NO_UNISTD_H
Expand Down
8 changes: 5 additions & 3 deletions src/gui/CMakeLists.txt
Expand Up @@ -135,10 +135,12 @@ IF (WIN32)
ENDIF (MSVC)
ENDIF (WIN32)

IF(NOT MSVC)
# disable deprecation warnings for qgisinterface (re-exporting deprecated methods)
# disable deprecation warnings for qgisinterface (re-exporting deprecated methods)
IF(MSVC)
SET_SOURCE_FILES_PROPERTIES(${CMAKE_BINARY_DIR}/src/gui/moc_qgisinterface.cxx PROPERTIES COMPILE_FLAGS "-wd4996")
ELSE(MSVC)
SET_SOURCE_FILES_PROPERTIES(${CMAKE_BINARY_DIR}/src/gui/moc_qgisinterface.cxx PROPERTIES COMPILE_FLAGS "-w")
ENDIF(NOT MSVC)
ENDIF(MSVC)

#############################################################
# qgis_gui library
Expand Down

0 comments on commit 9f135b8

Please sign in to comment.