Skip to content

Commit

Permalink
Avoid warnings by the Clang compiler
Browse files Browse the repository at this point in the history
Clang gave a couple of warnings for unused parameters after the recnet commit "Use constexpr when makes sense".

No functional change.
  • Loading branch information
snicolet authored and mcostalba committed Dec 4, 2017
1 parent 822695d commit 54f6ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.h
Expand Up @@ -333,7 +333,7 @@ inline Square& operator-=(Square &s, Direction d) { return s = s - d; }

/// Only declared but not defined. We don't want to multiply two scores due to
/// a very high risk of overflow. So user should explicitly convert to integer.
Score operator*(Score s1, Score s2) = delete;
Score operator*(Score, Score) = delete;

/// Division of a Score must be handled separately for each term
inline Score operator/(Score s, int i) {
Expand Down

0 comments on commit 54f6ce7

Please sign in to comment.