[Bug 105088] brw_nir_uniforms.cpp:256:10: error: non-constant-expression cannot be narrowed

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Feb 14 07:45:11 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=105088

            Bug ID: 105088
           Summary: brw_nir_uniforms.cpp:256:10: error:
                    non-constant-expression cannot be narrowed
           Product: Mesa
           Version: git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/DRI/i965
          Assignee: intel-3d-bugs at lists.freedesktop.org
          Reporter: vlee at freedesktop.org
        QA Contact: intel-3d-bugs at lists.freedesktop.org

Build error with clang 6.0.

  CXX      brw_nir_uniforms.lo
warning: unknown warning option '-Wno-override-init'; did you mean
      '-Wno-override-module'? [-Wunknown-warning-option]
brw_nir_uniforms.cpp:256:10: error: non-constant-expression cannot be narrowed
      from type 'gl_state_index_' to 'gl_state_index16' (aka 'short') in
      initializer list [-Wc++11-narrowing]
         nir->info.stage == MESA_SHADER_TESS_CTRL ?
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
brw_nir_uniforms.cpp:256:10: note: insert an explicit cast to silence this
issue
         nir->info.stage == MESA_SHADER_TESS_CTRL ?
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         static_cast<gl_state_index16>(

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20180214/6ea2a6d6/attachment.html>


More information about the intel-3d-bugs mailing list