Fixed some warnings when using -Weffc++ gcc option

Plus some other icc warnings popped up with new and strictier
compile options.

No functional and speed change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2010-10-16 13:52:01 +02:00
parent d664773a83
commit 85a7456bd7
6 changed files with 15 additions and 6 deletions

View File

@@ -150,10 +150,10 @@ template<typename T>
inline T operator- (const T d) { OK(T); return T(-int(d)); }
template<typename T>
inline void operator++ (T& d, int) { OK(T); d = T(int(d) + 1); }
inline T operator++ (T& d, int) { OK(T); d = T(int(d) + 1); return d; }
template<typename T>
inline void operator-- (T& d, int) { OK(T); d = T(int(d) - 1); }
inline T operator-- (T& d, int) { OK(T); d = T(int(d) - 1); return d; }
template<typename T>
inline void operator+= (T& d1, const T d2) { OK(T); d1 = d1 + d2; }