Skip to content

Commit

Permalink
debug sonar error on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
djmott committed Jul 2, 2016
1 parent 902c328 commit b6e7c83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ script:
- for item in $( find -name '*.gcda' ); do gcov -l $item; done
- for item in $( find -name '*.gcda' ); do gcovr -x -r . > $TRAVIS_BUILD_DIR/docs/reports/gcov/$(basename $item).xml; done
- cd $TRAVIS_BUILD_DIR/
- sonar-scanner -Dsonar.host.url=https://nemo.sonarqube.org -Dsonar.login=$SONAR_TOKEN
- sonar-scanner -e -X -Dsonar.host.url=https://nemo.sonarqube.org -Dsonar.login=$SONAR_TOKEN
success:
- cd $TRAVIS_BUILD_DIR/docs/html
- git init
Expand Down
8 changes: 6 additions & 2 deletions src/event_trace/event_trace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@ namespace{

extern "C"{
void __xtd_EventEnter(void *){
if (_InTrace) return;
if (_InTrace){
return;
}
_InTrace = true;
_ThreadStack.push("");
_InTrace = false;
}

void __xtd_EventLeave(void *){
if (_InTrace) return;
if (_InTrace){
return;
}
_InTrace = true;
_ThreadStack.pop();
_InTrace = false;
Expand Down

0 comments on commit b6e7c83

Please sign in to comment.