Skip to content

Commit da36ac7

Browse files
committed
fix more warnings (followup 1c9d6eb)
1 parent 8fffd53 commit da36ac7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/app/main.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,9 @@ static void dumpBacktrace( unsigned int depth )
226226

227227
// stdin from pipe
228228
if ( dup( fd[0] ) != STDIN_FILENO )
229+
{
229230
QgsDebugMsg( "dup to stdin failed" );
231+
}
230232

231233
close( fd[1] ); // close writing end
232234
execl( "/usr/bin/c++filt", "c++filt", ( char * ) 0 );
@@ -241,7 +243,9 @@ static void dumpBacktrace( unsigned int depth )
241243

242244
// stderr to pipe
243245
if ( dup( fd[1] ) != STDERR_FILENO )
246+
{
244247
QgsDebugMsg( "dup to stderr failed" );
248+
}
245249

246250
close( fd[1] ); // close duped pipe
247251
}
@@ -255,7 +259,9 @@ static void dumpBacktrace( unsigned int depth )
255259
int status;
256260
close( STDERR_FILENO );
257261
if ( dup( stderr_fd ) != STDERR_FILENO )
262+
{
258263
QgsDebugMsg( "dup to stderr failed" );
264+
}
259265
close( stderr_fd );
260266
wait( &status );
261267
}

tests/src/app/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ ENDMACRO (ADD_QGIS_TEST)
9090
#############################################################
9191
# Tests:
9292
93-
ADD_QGIS_TEST(qgisappclippboard testqgisappclipboard.cpp)
93+
ADD_QGIS_TEST(qgisappclipboard testqgisappclipboard.cpp)

0 commit comments

Comments
 (0)