Skip to content
  • Robert Maynard's avatar
    Types and Matrix don't emit Wunused-value warnings from __builtin_expect · 270ece24
    Robert Maynard authored
    When using Types or Matrix with the nvcc compiler with Wunused-value
    enabled you would get the following warning:
    (__builtin_expect(!(rowIndex < (this,NUM_ROWS)), 0)) ?
    __assert_rtn(__func__, "vtkm/Matrix.h", 86, "rowIndex < this->NUM_ROWS") :
    ((void)0);
    
    This is solved by changing this->NUM_ROWS to just NUM_ROWS.
    270ece24