Skip to content
Permalink
Browse files

fix more warnings (followup 1c9d6eb)

  • Loading branch information
jef-n committed Sep 6, 2013
1 parent 8fffd53 commit da36ac7dbea3a1f77295fc00f18266afa9e4ff4e
Showing with 7 additions and 1 deletion.
  1. +6 −0 src/app/main.cpp
  2. +1 −1 tests/src/app/CMakeLists.txt
@@ -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 );
@@ -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
}
@@ -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 );
}
@@ -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.
You can’t perform that action at this time.