[llvm-bugs] [Bug 28761] New: unused variable '__O' in avx512fintrin.h

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jul 28 16:40:26 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28761

            Bug ID: 28761
           Summary: unused variable '__O' in avx512fintrin.h
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Headers
          Assignee: unassignedclangbugs at nondot.org
          Reporter: lonico at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

In https://llvm.org/svn/llvm-project/cfe/trunk/lib/Headers/avx512fintrin.h

static __inline__ __m256i __DEFAULT_FN_ATTRS
_mm512_cvtsepi64_epi32 (__m512i __A)
{
  __v8si __O;
  return (__m256i) __builtin_ia32_pmovsqd512_mask ((__v8di) __A,
               (__v8si) _mm256_undefined_si256 (),
               (__mmask8) -1);
}


__O is not used.  This is annoying when compiling with -Werror:

clang/intrinsics/avx512fintrin.h:7505:10: error: unused variable '__O'
[-Werror,-Wunused-variable]
  __v8si __O;
         ^
1 error generated.


This is present in 3.9.0 and trunk.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160728/26d98320/attachment.html>


More information about the llvm-bugs mailing list