Skip to content

Commit c661d4f

Browse files
author
wonder
committed
Fixed build of grass provider and plugin on linux i've broken recently.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6663 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent f61dbe0 commit c661d4f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/plugins/grass/qgsgrasstools.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ void QgsGrassTools::moduleClicked( Q3ListViewItem * item )
167167

168168
if ( name.length() == 0 ) return; // Section
169169

170+
#ifndef WIN32
171+
QgsGrassShell* sh = 0;
172+
#endif
173+
170174
QString path = QgsApplication::pkgDataPath() + "/grass/modules/" + name;
171175
#ifdef QGISDEBUG
172176
std::cerr << "path = " << path.ascii() << std::endl;

src/providers/grass/qgsgrass.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,11 @@ QString QgsGrass::openMapset ( QString gisdbase, QString location, QString mapse
412412
// TODO better wait
413413
while ( process->isRunning () ) { }
414414

415-
#ifdef QGISDEBUG
415+
#ifndef WIN32
416416
int status = process->exitStatus ();
417+
#ifdef QGISDEBUG
417418
std::cerr << "status = " << status << std::endl;
419+
#endif
418420
#endif
419421
delete process;
420422

0 commit comments

Comments
 (0)