Skip to content

Some warnings in header includes #84

@correaa

Description

@correaa
/Users/correatedesco1/boost-multi/.build.g++-15/_deps/tblis-src/tblis/frame/3t/mult.h:37:25: warning: comparison of integer expressions of different signedness: 'const int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   37 |     TBLIS_ASSERT(A.ndim == idx_A.size());
      |                  ~~~~~~~^~~~~~~~~~~~~~~
/Users/correatedesco1/boost-multi/.build.g++-15/_deps/tblis-src/tblis/frame/base/basic_types.h:104:81: note: in definition of macro 'TBLIS_ASSERT'
  104 |             tblis_check_assert(TBLIS_STRINGIZE(TBLIS_FIRST_ARG(__VA_ARGS__,0)), __VA_ARGS__)
      |                                                                                 ^~~~~~~~~~~
/Users/correatedesco1/boost-multi/.build.g++-15/_deps/tblis-src/tblis/frame/3t/mult.h:38:25: warning: comparison of integer expressions of different signedness: 'const int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   38 |     TBLIS_ASSERT(B.ndim == idx_B.size());
      |                  ~~~~~~~^~~~~~~~~~~~~~~
/Users/correatedesco1/boost-multi/.build.g++-15/_deps/tblis-src/tblis/frame/base/basic_types.h:104:81: note: in definition of macro 'TBLIS_ASSERT'
  104 |             tblis_check_assert(TBLIS_STRINGIZE(TBLIS_FIRST_ARG(__VA_ARGS__,0)), __VA_ARGS__)
      |                                                                                 ^~~~~~~~~~~
/Users/correatedesco1/boost-multi/.build.g++-15/_deps/tblis-src/tblis/frame/3t/mult.h:39:25: warning: comparison of integer expressions of different signedness: 'const int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   39 |     TBLIS_ASSERT(C.ndim == idx_C.size());
      |                  ~~~~~~~^~~~~~~~~~~~~~~
/Users/correatedesco1/boost-multi/.build.g++-15/_deps/tblis-src/tblis/frame/base/basic_types.h:104:81: note: in definition of macro 'TBLIS_ASSERT'
  104 |             tblis_check_assert(TBLIS_STRINGIZE(TBLIS_FIRST_ARG(__VA_ARGS__,0)), __VA_ARGS__)
      |                                                                                 ^~~~~~~~~~~

These can be solved by static_cast or by safe-compares https://en.cppreference.com/w/cpp/utility/intcmp.html .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions