Index: src/plugins/grass/qgsgrassplugin.cpp
===================================================================
--- src/plugins/grass/qgsgrassplugin.cpp	(revision 9662)
+++ src/plugins/grass/qgsgrassplugin.cpp	(working copy)
@@ -47,6 +47,17 @@
 #include <grass/Vect.h>
 }
 
+#include "grass/version.h"
+// Prevents some compiler warnings from the version.h include
+#ifndef GRASS_VERSION_RELEASE
+// When using newer version of GRASS (cvs >= 26.4.2007),
+// these variables are #defined instead of being static variables.
+QString temp1( GRASS_VERSION_STRING );
+QString temp2( GRASS_VERSION_MAJOR );
+QString temp3( GRASS_VERSION_MINOR );
+QString temp4( GRASS_VERSION_RELEASE );
+#endif
+
 static const QString pluginVersion = QObject::tr( "Version 0.1" );
 
 /**
Index: src/providers/grass/qgsgrassprovider.cpp
===================================================================
--- src/providers/grass/qgsgrassprovider.cpp	(revision 9662)
+++ src/providers/grass/qgsgrassprovider.cpp	(working copy)
@@ -50,6 +50,16 @@
 #undef __STDC__
 #endif
 
+#include "grass/version.h"
+// Prevents some compiler warnings from the version.h include
+#ifndef GRASS_VERSION_RELEASE
+// When using newer version of GRASS (cvs >= 26.4.2007),
+// these variables are #defined instead of being static variables.
+QString temp1( GRASS_VERSION_STRING );
+QString temp2( GRASS_VERSION_MAJOR );
+QString temp3( GRASS_VERSION_MINOR );
+QString temp4( GRASS_VERSION_RELEASE );
+#endif
 
 std::vector<GLAYER> QgsGrassProvider::mLayers;
 std::vector<GMAP> QgsGrassProvider::mMaps;
@@ -1527,7 +1537,7 @@
 #if defined(GRASS_VERSION_MAJOR) && defined(GRASS_VERSION_MINOR) && \
     ( ( GRASS_VERSION_MAJOR == 6 && GRASS_VERSION_MINOR >= 4 ) || GRASS_VERSION_MAJOR > 6 )
   Vect_build_partial( map->map, GV_BUILD_NONE );
-  Vect_build( map.map ); 
+  Vect_build( map->map ); 
 #else 
   Vect_build_partial( map->map, GV_BUILD_NONE, NULL );
   Vect_build( map->map, stderr );

