mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 01:27:16 +08:00
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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user