Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#36 warnings from clang 3.1

open
nobody
None
5
4 days ago
2012-01-17
Sylwester Arabas
No

I'm enclosing below the warnings emitted by clang++ 3.1 when compiling
current version of Blitz from the hg repo.

HTH,
Sylwester

/opt/local/include/blitz/indexexpr.h:221:16: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
+ (N>11) ? ArraySectionInfo<T11>::rank : 0;
/opt/local/include/blitz/indexexpr.h:221:16: note: place parentheses around the '+' expression to silence this warning
+ (N>11) ? ArraySectionInfo<T11>::rank : 0;
^
/opt/local/include/blitz/indexexpr.h:221:16: note: place parentheses around the '?:' expression to evaluate it first
+ (N>11) ? ArraySectionInfo<T11>::rank : 0;
^
( )
/opt/local/include/blitz/indexexpr.h:220:16: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
+ (N>10) ? ArraySectionInfo<T10>::rank : 0
/opt/local/include/blitz/indexexpr.h:220:16: note: place parentheses around the '+' expression to silence this warning
+ (N>10) ? ArraySectionInfo<T10>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:220:16: note: place parentheses around the '?:' expression to evaluate it first
+ (N>10) ? ArraySectionInfo<T10>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:219:15: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
+ (N>9) ? ArraySectionInfo<T9>::rank : 0
/opt/local/include/blitz/indexexpr.h:219:15: note: place parentheses around the '+' expression to silence this warning
+ (N>9) ? ArraySectionInfo<T9>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:219:15: note: place parentheses around the '?:' expression to evaluate it first
+ (N>9) ? ArraySectionInfo<T9>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:218:15: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
+ (N>8) ? ArraySectionInfo<T8>::rank : 0
/opt/local/include/blitz/indexexpr.h:218:15: note: place parentheses around the '+' expression to silence this warning
+ (N>8) ? ArraySectionInfo<T8>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:218:15: note: place parentheses around the '?:' expression to evaluate it first
+ (N>8) ? ArraySectionInfo<T8>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:217:15: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
+ (N>7) ? ArraySectionInfo<T7>::rank : 0
/opt/local/include/blitz/indexexpr.h:217:15: note: place parentheses around the '+' expression to silence this warning
+ (N>7) ? ArraySectionInfo<T7>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:217:15: note: place parentheses around the '?:' expression to evaluate it first
+ (N>7) ? ArraySectionInfo<T7>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:216:15: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
+ (N>6) ? ArraySectionInfo<T6>::rank : 0
/opt/local/include/blitz/indexexpr.h:216:15: note: place parentheses around the '+' expression to silence this warning
+ (N>6) ? ArraySectionInfo<T6>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:216:15: note: place parentheses around the '?:' expression to evaluate it first
+ (N>6) ? ArraySectionInfo<T6>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:215:15: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
+ (N>5) ? ArraySectionInfo<T5>::rank : 0
/opt/local/include/blitz/indexexpr.h:215:15: note: place parentheses around the '+' expression to silence this warning
+ (N>5) ? ArraySectionInfo<T5>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:215:15: note: place parentheses around the '?:' expression to evaluate it first
+ (N>5) ? ArraySectionInfo<T5>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:214:15: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
+ (N>4) ? ArraySectionInfo<T4>::rank : 0
/opt/local/include/blitz/indexexpr.h:214:15: note: place parentheses around the '+' expression to silence this warning
+ (N>4) ? ArraySectionInfo<T4>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:214:15: note: place parentheses around the '?:' expression to evaluate it first
+ (N>4) ? ArraySectionInfo<T4>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:213:15: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
+ (N>2) ? ArraySectionInfo<T3>::rank : 0
/opt/local/include/blitz/indexexpr.h:213:15: note: place parentheses around the '+' expression to silence this warning
+ (N>2) ? ArraySectionInfo<T3>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:213:15: note: place parentheses around the '?:' expression to evaluate it first
+ (N>2) ? ArraySectionInfo<T3>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:212:15: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
+ (N>1) ? ArraySectionInfo<T2>::rank : 0
/opt/local/include/blitz/indexexpr.h:212:15: note: place parentheses around the '+' expression to silence this warning
+ (N>1) ? ArraySectionInfo<T2>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:212:15: note: place parentheses around the '?:' expression to evaluate it first
+ (N>1) ? ArraySectionInfo<T2>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:221:16: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
+ (N>11) ? ArraySectionInfo<T11>::rank : 0;
/opt/local/include/blitz/array/expr.h:307:39: note: in instantiation of template class
'blitz::IndexPlaceholder<0>::SliceInfo<blitz::TinyVector<int, 1>, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection,
blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection,
blitz::nilArraySection, blitz::nilArraySection>' requested here
typedef typename T_expr::template SliceInfo<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>::T_slice T_subexpr;
^
/opt/local/include/blitz/array/expr.h:317:12: note: in instantiation of template class 'blitz::_bz_ArrayExpr<blitz::IndexPlaceholder<0>
>::SliceInfo<blitz::TinyVector<int, 1>, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection,
blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection,
blitz::nilArraySection>' requested here
typename SliceInfo<T1>::T_slice
^
/opt/local/include/blitz/array/expr.h:318:3: note: while substituting deduced template arguments into function template 'operator()'
[with T1 = blitz::TinyVector<int, 1>]
operator()(T1 r1) const
^
/opt/local/include/blitz/globeval.cc:228:7: note: in instantiation of function template specialization
'blitz::_bz_evaluator<1>::evaluateWithIndexTraversal<blitz::TinyVector<int, 1>, blitz::_bz_ArrayExpr<blitz::IndexPlaceholder<0> >,
blitz::_bz_update<int, int> >' requested here
_bz_evaluator<T_dest::rank_>::evaluateWithIndexTraversal(dest, expr, T_update());
^
/opt/local/include/blitz/tvevaluate.h:133:5: note: in instantiation of function template specialization
'blitz::_bz_evaluate<blitz::TinyVector<int, 1>, blitz::_bz_ArrayExpr<blitz::IndexPlaceholder<0> >, blitz::_bz_update<int, int> >'
requested here
_bz_evaluate(dest, expr, T_update());
^
/opt/local/include/blitz/tvevaluate.h:177:40: note: in instantiation of function template specialization 'blitz::_tv_evaluator<true,
1>::select_evaluation<int, blitz::_bz_ArrayExpr<blitz::IndexPlaceholder<0> >, blitz::_bz_update<int, int> >' requested here
_tv_evaluator<mixed_expr, N_length>::select_evaluation(*this, expr, T_update());
^
/opt/local/include/blitz/tinyvec2.cc:86:3: note: in instantiation of function template specialization 'blitz::TinyVector<int,
1>::_tv_evaluate<blitz::_bz_ArrayExpr<blitz::IndexPlaceholder<0> >, blitz::_bz_update<int, int> >' requested here
_tv_evaluate(_bz_typename asExpr<T_expr>::T_expr(expr.unwrap()),
^
/opt/local/include/blitz/array/storage.h:410:17: note: in instantiation of function template specialization 'blitz::TinyVector<int,
1>::operator=<blitz::IndexPlaceholder<0> >' requested here
ordering_ = tensor::i;//Range(0, N_rank - 1);
^
/opt/local/include/blitz/array/storage.h:428:14: note: in instantiation of member function 'blitz::ColumnMajorArray<1>::ColumnMajorArray'
requested here
{ return ColumnMajorArray<1>(); }
^
/opt/local/include/blitz/indexexpr.h:221:16: note: place parentheses around the '+' expression to silence this warning
+ (N>11) ? ArraySectionInfo<T11>::rank : 0;
^
/opt/local/include/blitz/indexexpr.h:221:16: note: place parentheses around the '?:' expression to evaluate it first
+ (N>11) ? ArraySectionInfo<T11>::rank : 0;
^
( )
/opt/local/include/blitz/indexexpr.h:220:16: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
+ (N>10) ? ArraySectionInfo<T10>::rank : 0
/opt/local/include/blitz/indexexpr.h:220:16: note: place parentheses around the '+' expression to silence this warning
+ (N>10) ? ArraySectionInfo<T10>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:220:16: note: place parentheses around the '?:' expression to evaluate it first
+ (N>10) ? ArraySectionInfo<T10>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:219:15: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
+ (N>9) ? ArraySectionInfo<T9>::rank : 0
/opt/local/include/blitz/indexexpr.h:219:15: note: place parentheses around the '+' expression to silence this warning
+ (N>9) ? ArraySectionInfo<T9>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:219:15: note: place parentheses around the '?:' expression to evaluate it first
+ (N>9) ? ArraySectionInfo<T9>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:218:15: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
+ (N>8) ? ArraySectionInfo<T8>::rank : 0
/opt/local/include/blitz/indexexpr.h:218:15: note: place parentheses around the '+' expression to silence this warning
+ (N>8) ? ArraySectionInfo<T8>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:218:15: note: place parentheses around the '?:' expression to evaluate it first
+ (N>8) ? ArraySectionInfo<T8>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:217:15: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
+ (N>7) ? ArraySectionInfo<T7>::rank : 0
/opt/local/include/blitz/indexexpr.h:217:15: note: place parentheses around the '+' expression to silence this warning
+ (N>7) ? ArraySectionInfo<T7>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:217:15: note: place parentheses around the '?:' expression to evaluate it first
+ (N>7) ? ArraySectionInfo<T7>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:216:15: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
+ (N>6) ? ArraySectionInfo<T6>::rank : 0
/opt/local/include/blitz/indexexpr.h:216:15: note: place parentheses around the '+' expression to silence this warning
+ (N>6) ? ArraySectionInfo<T6>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:216:15: note: place parentheses around the '?:' expression to evaluate it first
+ (N>6) ? ArraySectionInfo<T6>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:215:15: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
+ (N>5) ? ArraySectionInfo<T5>::rank : 0
/opt/local/include/blitz/indexexpr.h:215:15: note: place parentheses around the '+' expression to silence this warning
+ (N>5) ? ArraySectionInfo<T5>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:215:15: note: place parentheses around the '?:' expression to evaluate it first
+ (N>5) ? ArraySectionInfo<T5>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:214:15: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
+ (N>4) ? ArraySectionInfo<T4>::rank : 0
/opt/local/include/blitz/indexexpr.h:214:15: note: place parentheses around the '+' expression to silence this warning
+ (N>4) ? ArraySectionInfo<T4>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:214:15: note: place parentheses around the '?:' expression to evaluate it first
+ (N>4) ? ArraySectionInfo<T4>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:213:15: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
+ (N>2) ? ArraySectionInfo<T3>::rank : 0
/opt/local/include/blitz/indexexpr.h:213:15: note: place parentheses around the '+' expression to silence this warning
+ (N>2) ? ArraySectionInfo<T3>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:213:15: note: place parentheses around the '?:' expression to evaluate it first
+ (N>2) ? ArraySectionInfo<T3>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:212:15: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
+ (N>1) ? ArraySectionInfo<T2>::rank : 0
/opt/local/include/blitz/indexexpr.h:212:15: note: place parentheses around the '+' expression to silence this warning
+ (N>1) ? ArraySectionInfo<T2>::rank : 0
^
/opt/local/include/blitz/indexexpr.h:212:15: note: place parentheses around the '?:' expression to evaluate it first
+ (N>1) ? ArraySectionInfo<T2>::rank : 0
^
20 warnings generated.

Discussion