diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-05-10 07:40:27 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-05-10 07:40:27 +0200 |
| commit | ed52c7cb70fd282bbcdd58e8982cc7df13c6f275 (patch) | |
| tree | 60870ec5fea8bf72ec75984f4ddae8e7d906265b | |
| parent | 2df779cef106a875ce29b18256e3be3243074bfa (diff) | |
Remove compilation warnings
| m--------- | libs/chess-move-interface | 10 | ||||
| -rw-r--r-- | src/HalfMove.cpp | 2 | ||||
| -rw-r--r-- | src/PGN.cpp | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/libs/chess-move-interface b/libs/chess-move-interface -Subproject 03ce4126cfa09ff0a55e70bdc44c1d5dd403504 +Subproject 14ac3bba33a037e4b46b3f7ec9ba05760145f28 diff --git a/src/HalfMove.cpp b/src/HalfMove.cpp index c1e4667..7e0e2cd 100644 --- a/src/HalfMove.cpp +++ b/src/HalfMove.cpp @@ -2,7 +2,7 @@ namespace pgnp { -HalfMove::HalfMove() : count(-1), isBlack(false), MainLine(NULL), NAG(0) {} +HalfMove::HalfMove() : count(-1), isBlack(false), NAG(0), MainLine(NULL) {} HalfMove::~HalfMove() { delete MainLine; diff --git a/src/PGN.cpp b/src/PGN.cpp index 831de6e..1620292 100644 --- a/src/PGN.cpp +++ b/src/PGN.cpp @@ -30,7 +30,7 @@ namespace pgnp { -PGN::PGN() : LastGameEndLoc(0), moves(NULL) {} +PGN::PGN() : moves(NULL), LastGameEndLoc(0) {} PGN::~PGN() { if (moves != NULL) @@ -124,7 +124,7 @@ void PGN::ParseNextGame() { } void PGN::STRCheck() { - int i = 0; + long unsigned int i = 0; // Locate Event tag while (i < tagkeys.size()) { if (tagkeys[i] == "Event") { |
