plaidml/tpp-mlir

Some warnings in the build

Closed this issue · 0 comments

Weird, I've added -Werror to the CMake, but apparently a warnings crept up in GCC builds.

TensorInitInt.cpp:

TensorInitInt.cpp: In static member function ‘static unsigned int TensorInitInt::getDataTypeBitWidth(DataType)’:
TensorInitInt.cpp:38:1: warning: control reaches end of non-void function [-Wreturn-type]
   38 | }
      | ^

XsmmUtils.cpp:

XsmmUtils.cpp: In lambda function:
XsmmUtils.cpp:253:45: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
  253 |       assert(*operand == 1 || *operand == 0 && "Expect idx to be 1 or 0");
      |                               ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~