Browse Source

fixes for cppcheck warnings

Nathalie Furmento 8 years ago
parent
commit
bd43b6f45a
2 changed files with 5 additions and 5 deletions
  1. 2 2
      src/debug/traces/starpu_fxt_mpi.c
  2. 3 3
      tools/cppcheck/suppressions.txt

+ 2 - 2
src/debug/traces/starpu_fxt_mpi.c

@@ -330,8 +330,8 @@ static void display_all_transfers_from_trace(FILE *out_paje_file, unsigned n)
 #else
 			fprintf(out_paje_file, "18	%.9f	MPIL	MPIroot	%lu	%u_mpict	mpicom_%lu\n", start_date, (unsigned long)size, src, id);
 			fprintf(out_paje_file, "19	%.9f	MPIL	MPIroot	%lu	%u_mpict	mpicom_%lu\n", end_date, (unsigned long)size, dst, id);
-			fprintf(out_paje_file, "13	%.9f	%d_mpict	bwo	%f\n", start_date, src, current_out_bandwidth[src]);
-			fprintf(out_paje_file, "13	%.9f	%d_mpict	bwi	%f\n", start_date, dst, current_in_bandwidth[dst]);
+			fprintf(out_paje_file, "13	%.9f	%u_mpict	bwo	%f\n", start_date, src, current_out_bandwidth[src]);
+			fprintf(out_paje_file, "13	%.9f	%u_mpict	bwi	%f\n", start_date, dst, current_in_bandwidth[dst]);
 #endif
 		}
 		else

+ 3 - 3
tools/cppcheck/suppressions.txt

@@ -50,12 +50,12 @@ redundantCopy:src/core/disk_ops/disk_leveldb.cpp:194
 
 nullPointerRedundantCheck:src/common/rbtree.c
 unreadVariable:src/datawizard/interfaces/*
-unreadVariable:src/drivers/driver_common/driver_common.c:482
-clarifyCondition:src/drivers/opencl/driver_opencl.c:936
+unreadVariable:src/drivers/driver_common/driver_common.c:487
+clarifyCondition:src/drivers/opencl/driver_opencl.c:955
 unreadVariable:src/drivers/opencl/driver_opencl.c:767
 clarifyCondition:src/drivers/cuda/driver_cuda.c:507
 arithOperationsOnVoidPointer:src/drivers/scc/*
-nullPointerRedundantCheck:src/sched_policies/deque_modeling_policy_data_aware.c:196
+nullPointerRedundantCheck:src/sched_policies/deque_modeling_policy_data_aware.c:198
 sizeofDereferencedVoidPointer:src/util/fstarpu.c
 
 allocaCalled:gcc-plugin/src/*