[Openmp-dev] unused variables
Jack Howarth
howarth.mailing.lists at gmail.com
Wed Jun 3 12:44:25 PDT 2015
Jonathan,
It might be worth weeding through the unused variable warnings
which seem to be a combination of dead code and declarations that
should be protected by additional preprocessor statements. For an
example of dead code, the following warnings seem to point to some
instances....
/sw/src/fink.build/llvm37-3.7.0-100/llvm-3.7.0.src/projects/openmp/runtime/src/kmp_gsupport.c:189:11:
warning: unused variable 'loc' [-Wunused-variable]
MKLOC(loc, "GOMP_single_copy_end");
^
/sw/src/fink.build/llvm37-3.7.0-100/llvm-3.7.0.src/projects/openmp/runtime/src/kmp_gsupport.c:31:21:
note: expanded from macro 'MKLOC'
static ident_t (loc) = {0, KMP_IDENT_KMPC, 0, 0, ";unknown;unknown;0;0;;" };
^
/sw/src/fink.build/llvm37-3.7.0-100/llvm-3.7.0.src/projects/openmp/runtime/src/kmp_gsupport.c:853:1:
warning: unused variable 'last' [-Wunused-variable]
PARALLEL_LOOP_START(xexpand(KMP_API_NAME_GOMP_PARALLEL_LOOP_STATIC_START),
kmp_sch_static)
^
/sw/src/fink.build/llvm37-3.7.0-100/llvm-3.7.0.src/projects/openmp/runtime/src/kmp_gsupport.c:827:13:
note: expanded from macro 'PARALLEL_LOOP_START'
int last = FALSE; \
^
/sw/src/fink.build/llvm37-3.7.0-100/llvm-3.7.0.src/projects/openmp/runtime/src/kmp_gsupport.c:1182:1:
warning: unused variable 'last' [-Wunused-variable]
PARALLEL_LOOP(xexpand(KMP_API_NAME_GOMP_PARALLEL_LOOP_STATIC), kmp_sch_static)
^
/sw/src/fink.build/llvm37-3.7.0-100/llvm-3.7.0.src/projects/openmp/runtime/src/kmp_gsupport.c:1152:13:
note: expanded from macro 'PARALLEL_LOOP'
int last = FALSE; \
^
Jack
More information about the Openmp-dev
mailing list