Commit c2cbe4d5 authored by Mathieu Faverge's avatar Mathieu Faverge

Missing curly braces

parent 35f71f9b
......@@ -22,14 +22,18 @@ lcov_cobertura.py hqr.lcov --output hqr-coverage.xml
cat ./hqr-gcov.log
# Undefine this because not relevant in our configuration
export UNDEFINITIONS="-UWIN32 -UWIN64 -U_MSC_EXTENSIONS -U_MSC_VER -U__SUNPRO_C -U__SUNPRO_CC -U__sun -Usun -U__cplusplus"
export UNDEFINITIONS="-UWIN32 -UWIN64 -U_MSC_EXTENSIONS -U_MSC_VER -U__SUNPRO_C -U__SUNPRO_CC -U__sun -Usun"
export DEFINITIONS="-D__cplusplus"
# run cppcheck analysis
cppcheck -v -f --language=c --platform=unix64 --enable=all --xml --xml-version=2 --suppress=missingInclude ${UNDEFINITIONS} --file-list=./filelist.txt 2> hqr-cppcheck.xml
cppcheck -v -f --language=c --platform=unix64 --enable=all --xml --xml-version=2 --suppress=missingInclude ${UNDEFINITIONS} ${DEFINITIONS} --file-list=./filelist.txt 2> hqr-cppcheck.xml
# run rats analysis
rats -w 3 --xml `cat filelist.txt` > hqr-rats.xml
# Set the default for the project key
SONARQUBE_PROJECTKEY=${SONARQUBE_PROJECTKEY:-hiepacs:hqr:gitlab:master}
# create the sonarqube config file
cat > sonar-project.properties << EOF
sonar.host.url=https://sonarqube.bordeaux.inria.fr/sonarqube
......@@ -40,7 +44,7 @@ sonar.links.scm=https://gitlab.inria.fr/solverstack/hqr.git
sonar.links.ci=https://gitlab.inria.fr/solverstack/hqr/pipelines
sonar.links.issue=https://gitlab.inria.fr/solverstack/hqr/issues
sonar.projectKey=hiepacs:hqr:gitlab:master
sonar.projectKey=$SONARQUBE_PROJECTKEY
sonar.projectDescription=Library for hierarchical QR/LQ reduction trees
sonar.projectVersion=master
......@@ -48,6 +52,7 @@ sonar.language=c
sonar.sources=include, src, testings
sonar.inclusions=`cat filelist.txt | xargs echo | sed 's/ /, /g'`
sonar.sourceEncoding=UTF-8
sonar.c.errorRecoveryEnabled=true
sonar.c.compiler.charset=UTF-8
sonar.c.compiler.parser=GCC
sonar.c.compiler.regex=^(.*):(\\d+):\\d+: warning: (.*)\\[(.*)\\]$
......
......@@ -24,9 +24,9 @@
#define PRINT_PIVGEN 0
#ifdef PRINT_PIVGEN
#define myassert( test ) {if ( ! (test) ) return -1;}
#define myassert( test ) do { if ( ! (test) ) { return -1 }; } while(0)
#else
#define myassert(test) {assert((test)); return -1;}
#define myassert(test) do { assert((test)); return -1; } while(0)
#endif
#if defined(LIBHQR_HAVE_FALLTHROUGH)
......
......@@ -170,7 +170,7 @@ drawsvg_lines_stepk( const libhqr_tree_t *qrtree, FILE *file,
{
int i, m, p, end;
int imax = qrtree->mt - 1;
if (!full) imax -= k;
if (!full) { imax -= k; }
/* Get order for step k */
libhqr_walk_stepk( qrtree, k, tiles );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment