Skip to content

crunch/inc/crn_defs.h: warning #175: subscript out of range with ICC #79

@illwieckz

Description

@illwieckz

I get this when building the Damon engine with ICC:

crunch/inc/crn_defs.h(236): warning #175: subscript out of range
          return (m_buf[0] << 24U) | (m_buf[1] << 16U) | (m_buf[2] << 8U) | (m_buf[3]);
                                                                            ^
          detected during instantiation of "crnd::crn_packed_uint<N>::operator unsigned int() const [with N=3U]" at line 2242 of "crunch/inc/crn_decomp.h"

crunch/inc/crn_defs.h(234): warning #175: subscript out of range
          return (m_buf[0] << 16U) | (m_buf[1] << 8U) | (m_buf[2]);
                                                        ^
          detected during instantiation of "crnd::crn_packed_uint<N>::operator unsigned int() const [with N=2U]" at line 2198 of "crunch/inc/crn_decomp.h"

crunch/inc/crn_defs.h(236): warning #175: subscript out of range
          return (m_buf[0] << 24U) | (m_buf[1] << 16U) | (m_buf[2] << 8U) | (m_buf[3]);
                                                          ^
          detected during instantiation of "crnd::crn_packed_uint<N>::operator unsigned int() const [with N=2U]" at line 2198 of "crunch/inc/crn_decomp.h"

crunch/inc/crn_defs.h(236): warning #175: subscript out of range
          return (m_buf[0] << 24U) | (m_buf[1] << 16U) | (m_buf[2] << 8U) | (m_buf[3]);
                                                                                  ^
          detected during instantiation of "crnd::crn_packed_uint<N>::operator unsigned int() const [with N=2U]" at line 2198 of "crunch/inc/crn_decomp.h"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions