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)
3
3
4
4
ADD_DEFINITIONS (-DGRASS_BASE=\\\"${GRASS_PREFIX} \\\")
5
5
ADD_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 )
8
6
9
7
########################################################
10
8
# Files
Original file line number Diff line number Diff line change
1
+
1
2
/* **************************************************************************
2
3
qgsgrassnewmapset.cpp - New GRASS mapset wizard
3
4
-------------------
61
62
62
63
// For bug in GPJ_osr_to_grass()
63
64
#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);
64
70
65
71
bool QgsGrassNewMapset::mRunning = false ;
66
72
Original file line number Diff line number Diff line change 1
1
2
2
ADD_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 )
5
3
6
4
########################################################
7
5
# Files
Original file line number Diff line number Diff line change @@ -987,6 +987,14 @@ int QgsGrass::versionMinor()
987
987
{
988
988
return QString (GRASS_VERSION_MINOR).toInt ();
989
989
}
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
+ }
990
998
991
999
bool QgsGrass::isMapset ( QString path )
992
1000
{
Original file line number Diff line number Diff line change @@ -149,6 +149,8 @@ class QgsGrass {
149
149
// ! Library version
150
150
static int versionMajor ();
151
151
static int versionMinor ();
152
+ static int versionRelease ();
153
+ static QString versionString ();
152
154
153
155
private:
154
156
static int initialized; // Set to 1 after initialization
You can’t perform that action at this time.
0 commit comments