[Openmp-dev] unused variables

Jack Howarth howarth.mailing.lists at gmail.com
Wed Jun 3 14:21:08 PDT 2015


Jonathan,
       Attached is a bzip2 compressed log file for the openmp section
of a cmake build on x86_64-apple-darwin14 using the LLVM clang 3.6.0
compilers. The sources are all at revision 238958.
              Jack

On Wed, Jun 3, 2015 at 3:54 PM, Peyton, Jonathan L
<jonathan.l.peyton at intel.com> wrote:
> Jack,
>
> Can you send me (maybe as attachment) a log of a build so I can sift through all the unused variable warnings.
> I'm guessing the ones below aren't all of them.
>
> -- Johnny
>
> -----Original Message-----
> From: Jack Howarth [mailto:howarth.mailing.lists at gmail.com]
> Sent: Wednesday, June 3, 2015 2:44 PM
> To: Peyton, Jonathan L; openmp-dev at dcs-maillist2.engr.illinois.edu
> Subject: unused variables
>
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openmp_intree_cmake_build.log.bz2
Type: application/x-bzip2
Size: 10865 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20150603/d53361c1/attachment.bin>


More information about the Openmp-dev mailing list