mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 07:27:46 +00: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:
+2
-2
@@ -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