File tree Expand file tree Collapse file tree 5 files changed +16
-4
lines changed Expand file tree Collapse file tree 5 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ SUBDIRS(config modules themes)
33
44ADD_DEFINITIONS (-DGRASS_BASE=\\\"${GRASS_PREFIX} \\\")
55ADD_DEFINITIONS (-DHAVE_OPENPTY=${HAVE_OPENPTY} )
6- MESSAGE ("plugins/grass : -Werror removed for this directory for now - please get rid of all warnings!" )
7- REMOVE_DEFINITIONS ( -Werror )
86
97########################################################
108# Files
Original file line number Diff line number Diff line change 1+
12/* **************************************************************************
23 qgsgrassnewmapset.cpp - New GRASS mapset wizard
34 -------------------
6162
6263// For bug in GPJ_osr_to_grass()
6364#include " grass/version.h"
65+ // Prevents some compiler warnings from the version.h include
66+ QString temp1 (GRASS_VERSION_STRING);
67+ QString temp2 (GRASS_VERSION_MAJOR);
68+ QString temp3 (GRASS_VERSION_MINOR);
69+ QString temp4 (GRASS_VERSION_RELEASE);
6470
6571bool QgsGrassNewMapset::mRunning = false ;
6672
Original file line number Diff line number Diff line change 11
22ADD_DEFINITIONS (-DGRASS_BASE=\\\"${GRASS_PREFIX} \\\")
3- MESSAGE ("providers/grass : -Werror removed for this directory for now - please get rid of all warnings!" )
4- REMOVE_DEFINITIONS ( -Werror )
53
64########################################################
75# Files
Original file line number Diff line number Diff line change @@ -987,6 +987,14 @@ int QgsGrass::versionMinor()
987987{
988988 return QString (GRASS_VERSION_MINOR).toInt ();
989989}
990+ int QgsGrass::versionRelease ()
991+ {
992+ return QString (GRASS_VERSION_RELEASE).toInt ();
993+ }
994+ QString QgsGrass::versionString ()
995+ {
996+ return QString (GRASS_VERSION_STRING);
997+ }
990998
991999bool QgsGrass::isMapset ( QString path )
9921000{
Original file line number Diff line number Diff line change @@ -149,6 +149,8 @@ class QgsGrass {
149149 // ! Library version
150150 static int versionMajor ();
151151 static int versionMinor ();
152+ static int versionRelease ();
153+ static QString versionString ();
152154
153155private:
154156 static int initialized; // Set to 1 after initialization
You can’t perform that action at this time.
0 commit comments