Navigation Menu

Skip to content

Commit

Permalink
fix more warnings (followup 1c9d6eb)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 6, 2013
1 parent 8fffd53 commit da36ac7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/app/main.cpp
Expand Up @@ -226,7 +226,9 @@ static void dumpBacktrace( unsigned int depth )

// stdin from pipe
if ( dup( fd[0] ) != STDIN_FILENO )
{
QgsDebugMsg( "dup to stdin failed" );
}

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

// stderr to pipe
if ( dup( fd[1] ) != STDERR_FILENO )
{
QgsDebugMsg( "dup to stderr failed" );
}

close( fd[1] ); // close duped pipe
}
Expand All @@ -255,7 +259,9 @@ static void dumpBacktrace( unsigned int depth )
int status;
close( STDERR_FILENO );
if ( dup( stderr_fd ) != STDERR_FILENO )
{
QgsDebugMsg( "dup to stderr failed" );
}
close( stderr_fd );
wait( &status );
}
Expand Down
2 changes: 1 addition & 1 deletion tests/src/app/CMakeLists.txt
Expand Up @@ -90,4 +90,4 @@ ENDMACRO (ADD_QGIS_TEST)
#############################################################
# Tests:

ADD_QGIS_TEST(qgisappclippboard testqgisappclipboard.cpp)
ADD_QGIS_TEST(qgisappclipboard testqgisappclipboard.cpp)

0 comments on commit da36ac7

Please sign in to comment.