Skip to content

Instantly share code, notes, and snippets.

@michaeldv
Created November 13, 2015 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaeldv/118fbbb66a7d787b119e to your computer and use it in GitHub Desktop.
Save michaeldv/118fbbb66a7d787b119e to your computer and use it in GitHub Desktop.
Maverick 1.5 build log on OSX
$ make
c++ -c -o bitboards.o bitboards.cpp
In file included from bitboards.cpp:16:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
bitboards.cpp:275:56: warning: integer constant is larger than the largest signed integer type
assert(cannot_catch_pawn_mask[BLACK][BLACK][G5] == 18446470308215914496);
^
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
2 warnings generated.
c++ -c -o board.o board.cpp
In file included from board.cpp:25:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
board.cpp:365:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(board, "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -");
^
2 warnings generated.
c++ -c -o data.o data.cpp
In file included from data.cpp:21:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
1 warning generated.
c++ -c -o draw.o draw.cpp
In file included from draw.cpp:13:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
1 warning generated.
c++ -c -o eval.o eval.cpp
In file included from eval.cpp:24:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
eval.cpp:218:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (attack_squares = (moves & eval->king_zone[opponent])) {
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
eval.cpp:218:32: note: place parentheses around the assignment to silence this warning
if (attack_squares = (moves & eval->king_zone[opponent])) {
^
( )
eval.cpp:218:32: note: use '==' to turn this assignment into an equality comparison
if (attack_squares = (moves & eval->king_zone[opponent])) {
^
==
eval.cpp:260:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (attack_squares = ((rook_moves | bishop_moves) & eval->king_zone[opponent])) {
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
eval.cpp:260:32: note: place parentheses around the assignment to silence this warning
if (attack_squares = ((rook_moves | bishop_moves) & eval->king_zone[opponent])) {
^
( )
eval.cpp:260:32: note: use '==' to turn this assignment into an equality comparison
if (attack_squares = ((rook_moves | bishop_moves) & eval->king_zone[opponent])) {
^
==
eval.cpp:339:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (attack_squares = (moves & eval->king_zone[opponent])) {
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
eval.cpp:339:32: note: place parentheses around the assignment to silence this warning
if (attack_squares = (moves & eval->king_zone[opponent])) {
^
( )
eval.cpp:339:32: note: use '==' to turn this assignment into an equality comparison
if (attack_squares = (moves & eval->king_zone[opponent])) {
^
==
eval.cpp:394:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (attack_squares = (moves & eval->king_zone[opponent])) {
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
eval.cpp:394:32: note: place parentheses around the assignment to silence this warning
if (attack_squares = (moves & eval->king_zone[opponent])) {
^
( )
eval.cpp:394:32: note: use '==' to turn this assignment into an equality comparison
if (attack_squares = (moves & eval->king_zone[opponent])) {
^
==
eval.cpp:419:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (central_kq_pawns[color] & board->pieces[color][PAWN])){
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
eval.cpp:419:9: note: place parentheses around the assignment to silence this warning
if (b = (central_kq_pawns[color] & board->pieces[color][PAWN])){
^
( )
eval.cpp:419:9: note: use '==' to turn this assignment into an equality comparison
if (b = (central_kq_pawns[color] & board->pieces[color][PAWN])){
^
==
6 warnings generated.
c++ -c -o fen.o fen.cpp
In file included from fen.cpp:15:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
1 warning generated.
c++ -c -o futility.o futility.cpp
In file included from futility.cpp:15:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
1 warning generated.
c++ -c -o genmoves.o genmoves.cpp
In file included from genmoves.cpp:15:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
genmoves.cpp:1223:32: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
write_board(board, "board.txt");
^
genmoves.cpp:1225:36: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
write_move_list(moves, "move-list.txt");
^
3 warnings generated.
c++ -c -o hash.o hash.cpp
In file included from hash.cpp:17:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
1 warning generated.
c++ -c -o main.o main.cpp
In file included from main.cpp:21:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
main.cpp:36:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -");
^
2 warnings generated.
c++ -c -o make.o make.cpp
In file included from make.cpp:15:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
make.cpp:326:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (board->in_check = attack_count(board, board->king_square[opponent], color))
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make.cpp:326:29: note: place parentheses around the assignment to silence this warning
if (board->in_check = attack_count(board, board->king_square[opponent], color))
^
( )
make.cpp:326:29: note: use '==' to turn this assignment into an equality comparison
if (board->in_check = attack_count(board, board->king_square[opponent], color))
^
==
2 warnings generated.
c++ -c -o materialhash.o materialhash.cpp
In file included from materialhash.cpp:17:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
1 warning generated.
c++ -c -o movedirectory.o movedirectory.cpp
In file included from movedirectory.cpp:25:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
movedirectory.cpp:102:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
send_info("Castling Messed Up!!");
^
2 warnings generated.
c++ -c -o movelist.o movelist.cpp
In file included from movelist.cpp:15:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
1 warning generated.
c++ -c -o moveorder.o moveorder.cpp
In file included from moveorder.cpp:15:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
1 warning generated.
c++ -c -o openingbook.o openingbook.cpp
In file included from openingbook.cpp:27:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
openingbook.cpp:51:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
openingbook.cpp:57:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
openingbook.cpp:63:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
openingbook.cpp:73:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
openingbook.cpp:79:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
openingbook.cpp:84:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
7 warnings generated.
c++ -c -o pawnhash.o pawnhash.cpp
In file included from pawnhash.cpp:17:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
1 warning generated.
c++ -c -o perft.o perft.cpp
In file included from perft.cpp:15:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
perft.cpp:40:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
printf(move_as_str(move_list->move[i]));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
perft.cpp:52:75: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
printf(INFO_STRING_PERFT_SPEED, (unsigned long long) total_nodes, (int) finish - start, 1000 * total_nodes / (finish - start));
^~~~~~~~~~~~~~~~~~~~
3 warnings generated.
c++ -c -o pv.o pv.cpp
In file included from pv.cpp:16:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
pv.cpp:101:9: warning: expression result unused [-Wunused-value]
*fail_high_count++;
^~~~~~~~~~~~~~~~~~
pv.cpp:108:13: warning: expression result unused [-Wunused-value]
*fail_low_count++;
^~~~~~~~~~~~~~~~~
3 warnings generated.
c++ -c -o root.o root.cpp
In file included from root.cpp:21:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
root.cpp:33:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
send_info("Playing Chess960 / FRC");
^
root.cpp:87:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
send_info("Maverick Book Move!");
^
3 warnings generated.
c++ -c -o search.o search.cpp
In file included from search.cpp:21:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
1 warning generated.
c++ -c -o see.o see.cpp
In file included from see.cpp:15:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
see.cpp:78:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][PAWN] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:78:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][PAWN] & attacks[opponent])) {
^
( )
see.cpp:78:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][PAWN] & attacks[opponent])) {
^
==
see.cpp:87:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][KNIGHT] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:87:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][KNIGHT] & attacks[opponent])) {
^
( )
see.cpp:87:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][KNIGHT] & attacks[opponent])) {
^
==
see.cpp:95:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][BISHOP] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:95:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][BISHOP] & attacks[opponent])) {
^
( )
see.cpp:95:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][BISHOP] & attacks[opponent])) {
^
==
see.cpp:109:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][ROOK] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:109:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][ROOK] & attacks[opponent])) {
^
( )
see.cpp:109:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][ROOK] & attacks[opponent])) {
^
==
see.cpp:123:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][QUEEN] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:123:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][QUEEN] & attacks[opponent])) {
^
( )
see.cpp:123:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][QUEEN] & attacks[opponent])) {
^
==
see.cpp:137:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][KING] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:137:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][KING] & attacks[opponent])) {
^
( )
see.cpp:137:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][KING] & attacks[opponent])) {
^
==
see.cpp:162:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[to_move][PAWN] & attacks[to_move])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:162:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[to_move][PAWN] & attacks[to_move])) {
^
( )
see.cpp:162:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[to_move][PAWN] & attacks[to_move])) {
^
==
see.cpp:171:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[to_move][KNIGHT] & attacks[to_move])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:171:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[to_move][KNIGHT] & attacks[to_move])) {
^
( )
see.cpp:171:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[to_move][KNIGHT] & attacks[to_move])) {
^
==
see.cpp:179:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[to_move][BISHOP] & attacks[to_move])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:179:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[to_move][BISHOP] & attacks[to_move])) {
^
( )
see.cpp:179:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[to_move][BISHOP] & attacks[to_move])) {
^
==
see.cpp:193:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[to_move][ROOK] & attacks[to_move])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:193:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[to_move][ROOK] & attacks[to_move])) {
^
( )
see.cpp:193:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[to_move][ROOK] & attacks[to_move])) {
^
==
see.cpp:207:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[to_move][QUEEN] & attacks[to_move])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:207:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[to_move][QUEEN] & attacks[to_move])) {
^
( )
see.cpp:207:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[to_move][QUEEN] & attacks[to_move])) {
^
==
see.cpp:221:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[to_move][KING] & attacks[to_move])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:221:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[to_move][KING] & attacks[to_move])) {
^
( )
see.cpp:221:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[to_move][KING] & attacks[to_move])) {
^
==
see.cpp:298:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][PAWN] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:298:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][PAWN] & attacks[opponent])) {
^
( )
see.cpp:298:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][PAWN] & attacks[opponent])) {
^
==
see.cpp:307:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][KNIGHT] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:307:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][KNIGHT] & attacks[opponent])) {
^
( )
see.cpp:307:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][KNIGHT] & attacks[opponent])) {
^
==
see.cpp:315:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][BISHOP] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:315:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][BISHOP] & attacks[opponent])) {
^
( )
see.cpp:315:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][BISHOP] & attacks[opponent])) {
^
==
see.cpp:329:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][ROOK] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:329:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][ROOK] & attacks[opponent])) {
^
( )
see.cpp:329:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][ROOK] & attacks[opponent])) {
^
==
see.cpp:343:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][QUEEN] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:343:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][QUEEN] & attacks[opponent])) {
^
( )
see.cpp:343:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][QUEEN] & attacks[opponent])) {
^
==
see.cpp:357:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][KING] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:357:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][KING] & attacks[opponent])) {
^
( )
see.cpp:357:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][KING] & attacks[opponent])) {
^
==
see.cpp:382:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[color][PAWN] & attacks[color])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:382:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[color][PAWN] & attacks[color])) {
^
( )
see.cpp:382:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[color][PAWN] & attacks[color])) {
^
==
see.cpp:391:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[color][KNIGHT] & attacks[color])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:391:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[color][KNIGHT] & attacks[color])) {
^
( )
see.cpp:391:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[color][KNIGHT] & attacks[color])) {
^
==
see.cpp:399:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[color][BISHOP] & attacks[color])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:399:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[color][BISHOP] & attacks[color])) {
^
( )
see.cpp:399:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[color][BISHOP] & attacks[color])) {
^
==
see.cpp:413:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[color][ROOK] & attacks[color])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:413:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[color][ROOK] & attacks[color])) {
^
( )
see.cpp:413:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[color][ROOK] & attacks[color])) {
^
==
see.cpp:427:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[color][QUEEN] & attacks[color])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:427:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[color][QUEEN] & attacks[color])) {
^
( )
see.cpp:427:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[color][QUEEN] & attacks[color])) {
^
==
see.cpp:441:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[color][KING] & attacks[color])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:441:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[color][KING] & attacks[color])) {
^
( )
see.cpp:441:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[color][KING] & attacks[color])) {
^
==
25 warnings generated.
c++ -c -o test.o test.cpp
In file included from test.cpp:21:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
test.cpp:76:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -");
^
test.cpp:78:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r5r1/n1q1pP1k/3pPppp/P1pP4/2P4N/R1B5/2Q3PP/7K w - -");
^
test.cpp:88:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r5r1/n1q1pP1k/3pPppp/P1pP4/2P4N/R1B5/2Q3PP/7K w - -");
^
test.cpp:102:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "1r2k2r/p1ppqpb1/b3pnp1/3PN3/1pn1P3/2N2Q1p/PPPBBPPP/R4K1R w - -");
^
test.cpp:108:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "4q3/3P1P2/b4N2/8/3Q2Bb/2p3B1/1k4N1/4K1Nr w - -");
^
test.cpp:117:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "1r2k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R4K1R w --k- -");
^
test.cpp:129:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "Rr4kr/8/8/8/8/8/PPPP4/R1K5 w Ahb -");
^
test.cpp:139:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "1r1kbb1r/1pp2ppp/3npn2/3pN3/1Q3P2/4PN2/2PP2PP/qR1KBB1R w HBhb -");
^
test.cpp:145:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rkrbqnb1/pp2p2p/3p1pp1/2p1nP2/2P1P3/3P2N1/PP4PP/RKRBQNB1 w CAca -");
^
test.cpp:148:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
write_move_list(moves, "movelist.txt");
^
test.cpp:168:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkb1r/ppppp1pp/7n/5p2/4P3/8/PPPP1PPP/RNBQKBNR w KQkq -");
^
test.cpp:184:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r3Rbk1/2p2p1p/p2p4/1p1P2q1/8/PBPQ2pP/1P3P1P/3R2K1 b - -");
^
test.cpp:223:21: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "qr1kbb1r/1pp2ppp/3npn2/3pN3/1p3P2/4PN2/P1PP2PP/QR1KBB1R w HBhb -");
^
test.cpp:252:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1");
^
test.cpp:260:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq -");
^
test.cpp:268:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/2p5/3p4/KP5r/1R3p1k/8/4P1P1/8 w - -");
^
test.cpp:276:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r3k2r/Pppp1ppp/1b3nbN/nP6/BBP1P3/q4N2/Pp1P2PP/R2Q1RK1 w kq - 0 1");
^
test.cpp:287:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "1k6/1b6/8/8/7R/8/8/4K2R b K - 0 1");
^
test.cpp:294:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "3k4/3p4/8/K1P4r/8/8/8/8 b - - 0 1");
^
test.cpp:301:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/8/4k3/8/2p5/8/B2P2K1/8 w - - 0 1");
^
test.cpp:308:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/8/1k6/2b5/2pP4/8/5K2/8 b - d3 0 1");
^
test.cpp:315:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "5k2/8/8/8/8/8/8/4K2R w K - 0 1");
^
test.cpp:322:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "3k4/8/8/8/8/8/8/R3K3 w Q - 0 1");
^
test.cpp:329:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r3k2r/1b4bq/8/8/8/8/7B/R3K2R w KQkq - 0 1");
^
test.cpp:336:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r3k2r/8/3Q4/8/8/5q2/8/R3K2R b KQkq - 0 1");
^
test.cpp:343:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "2K2r2/4P3/8/8/8/8/8/3k4 w - - 0 1");
^
test.cpp:350:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/8/1P2K3/8/2n5/1q6/8/5k2 b - - 0 1");
^
test.cpp:357:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "4k3/1P6/8/8/8/8/K7/8 w - - 0 1");
^
test.cpp:364:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/P1k5/K7/8/8/8/8/8 w - - 0 1");
^
test.cpp:371:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "K1k5/8/P7/8/8/8/8/8 w - - 0 1");
^
test.cpp:378:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/k1P5/8/1K6/8/8/8/8 w - - 0 1");
^
test.cpp:385:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/8/2k5/5q2/5n2/8/5K2/8 b - - 0 1");
^
test.cpp:395:48: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
printf(INFO_STRING_PERFT_SPEED, global_nodes, perft_end_time - perft_start_time, 1000 * global_nodes / (perft_end_time - perft_start_time));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test.cpp:402:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r6b/p1pp1k2/1n6/8/4n3/2P3Pp/P1PBKP1P/R6R w - -");
^
test.cpp:403:27: warning: integer constant is larger than the largest signed integer type
ok &= (position->hash == 9349117323807073039);
^
test.cpp:405:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1");
^
test.cpp:408:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkbnr/ppp1pppp/8/3p4/4P3/8/PPPP1PPP/RNBQKBNR w KQkq d6 0 2");
^
test.cpp:411:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkbnr/ppp1pppp/8/3pP3/8/8/PPPP1PPP/RNBQKBNR b KQkq - 0 2");
^
test.cpp:414:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkbnr/ppp1p1pp/8/3pPp2/8/8/PPPP1PPP/RNBQKBNR w KQkq f6 0 3");
^
test.cpp:417:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkbnr/ppp1p1pp/8/3pPp2/8/8/PPPPKPPP/RNBQ1BNR b kq - 0 3");
^
test.cpp:420:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbq1bnr/ppp1pkpp/8/3pPp2/8/8/PPPPKPPP/RNBQ1BNR w - - 0 4");
^
test.cpp:423:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkbnr/p1pppppp/8/8/PpP4P/8/1P1PPPP1/RNBQKBNR b KQkq c3 0 3");
^
test.cpp:426:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkbnr/p1pppppp/8/8/P6P/R1p5/1P1PPPP1/1NBQKBNR b Kkq - 0 4");
^
test.cpp:438:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/pppr2pp/3pKp2/2Q3bn/8/b6k/PPP1P2P/3R2n1 w - -");
^
test.cpp:455:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/8/2K5/4k1PQ/8/5P2/1N1P4/2R3B1 w - -");
^
test.cpp:474:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "5rN1/4P3/1B6/1B3k2/8/4P3/6PP/2RQK2R w K -");
^
test.cpp:504:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "1k6/8/8/5PP1/3Pp2p/P7/8/4K3 w - -");
^
test.cpp:509:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/2p5/3p4/KP5r/1R3p1k/8/4P1P1/8 w - -");
^
test.cpp:514:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r3k2r/Pppp1ppp/1b3nbN/nP6/BBP1P3/q4N2/Pp1P2PP/R2Q1RK1 w kq - 0 1");
^
test.cpp:519:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "1k6/8/8/4b3/8/3B4/K7/8 b - -");
^
test.cpp:524:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "4r3/pbrq1p1k/1p3Bpp/3p1n2/3PPPQ1/P6R/1P4PP/1B3RK1 w - -");
^
test.cpp:529:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "4r3/pbrq1p1k/1p2pBpp/3p1n2/3PPPQ1/P6R/1P4PP/1B3RK1 w - -");
^
test.cpp:534:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r5k1/pq2pn2/3pN1pp/n2P4/1rp1PQ2/1P3PP1/PN4K1/2R4R w - -");
^
test.cpp:539:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/5p1k/6p1/8/2PK4/p7/P5P1/8 b - -");
^
test.cpp:544:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/8/7k/2R1Q1n1/1pRp4/8/2B5/5K2 w - -");
^
test.cpp:549:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "3K4/6p1/2P5/3P4/7k/8/1B4B1/5N2 w - -");
^
test.cpp:554:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/6k1/2p5/7K/N7/2N5/PPPP1PPP/8 w - -");
^
test.cpp:559:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "3b2k1/ppp4p/4P1p1/2n1p2b/2B4B/2PP4/PP2N1PP/4K3 w - -");
^
test.cpp:564:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "5k2/p1pK3p/1p2Q1p1/5Pq1/4P3/8/P5P1/8 b - -");
^
test.cpp:569:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "4rbk1/pp3ppp/2p5/q1n2P2/2PRn2P/2N2Q2/PP2B1P1/1K5R b - -");
^
test.cpp:574:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "2kr1b1r/pppbqpp1/2n5/1B1pP2p/P2Pn3/5N2/1PN2PPP/R1BQ1RK1 b - -");
^
test.cpp:579:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r1bq1b1r/ppp3pp/4k3/3Np3/2B5/P4Q2/1P1P1PPP/n1BK3R b - -");
^
test.cpp:584:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r2q1rk1/2pb1p1p/pp1bpPp1/4n1P1/1n2P3/2N1BN1Q/P1P4P/2KR1B1R b - -");
^
test.cpp:589:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/6pp/6p1/Pp6/1P6/1PK5/4P1k1/8 w - -");
^
test.cpp:595:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r7/5pp1/5p1k/2pPp3/1pP4P/pP1B1KPN/P4P2/8 b - -");
^
test.cpp:600:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/2k5/1pP5/1P6/K7/8/8/8 w - -");
^
test.cpp:605:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "5k2/8/8/7P/8/7K/8/8 b - -");
^
test.cpp:610:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "6k1/8/7K/7P/8/8/8/8 b - -");
^
test.cpp:615:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/6k1/8/3P4/1K6/8/8/8 b - -");
^
test.cpp:620:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "2k5/2P1K3/1p6/1P6/8/8/8/8 b - -");
^
test.cpp:625:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r2r2k1/ppp4p/4p1p1/2B1Nb2/1PN2P2/3P2P1/P1P4P/5K2 w - -");
^
test.cpp:630:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "1NQ5/k1p1p3/7p/pP2P1P1/2P5/2pq4/1n6/6K1 w - -");
^
test.cpp:635:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r1b1k3/1pq2pp1/p3p3/4p1Q1/3N2p1/1NP3Pr/PPP3Pb/R1BR3K w q -");
^
test.cpp:640:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "7k/6p1/K3p3/2P5/1P3r2/8/2R5/8 w - -");
^
test.cpp:646:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/4k3/8/8/6KP/8/5B2/8 w - -");
^
test.cpp:651:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/4k3/8/8/6KP/8/4B3/8 w - -");
^
test.cpp:656:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/2k5/8/8/6KP/8/4B3/8 b - -");
^
test.cpp:661:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/2k5/8/8/7P/8/4B3/6K1 w - -");
^
test.cpp:666:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/3k4/8/8/6P1/8/4B3/6K1 w - -");
^
test.cpp:671:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/8/8/k7/6P1/8/4B3/6K1 w - -");
^
test.cpp:676:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "7k/8/8/7P/4B3/5K2/7P/8 w - -");
^
test.cpp:690:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "2k1K3/7p/6p1/1p2RrR1/8/8/8/8 w - -");
^
test.cpp:691:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "e5b5");
^
test.cpp:694:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "g5f5");
^
test.cpp:697:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "g5g6");
^
test.cpp:702:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "e4b4");
^
test.cpp:705:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "g4f4");
^
test.cpp:708:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "g4g3");
^
test.cpp:711:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "k7/4n3/5n2/3p4/8/2N5/6B1/K6Q w - -");
^
test.cpp:712:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "c3d5");
^
test.cpp:715:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "k7/4n3/5n2/3p4/8/2N5/6B1/K7 w - -");
^
test.cpp:716:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "c3d5");
^
test.cpp:719:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "3k4/b7/1q6/8/3pK1RR/8/2N5/8 w - -");
^
test.cpp:720:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "c2d4");
^
test.cpp:723:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "3k4/8/1q6/8/3p2R1/7K/2N5/8 w - -");
^
test.cpp:724:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "c2d4");
^
test.cpp:727:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "Q7/p2k4/2pq4/3B4/8/8/6PP/n2Kb3 w - -");
^
test.cpp:728:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "a8c6");
^
test.cpp:732:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "4k3/1ppn4/p5rr/1B3p2/2p1p3/1b3P2/PPP1P1BR/3K3R w - -");
^
test.cpp:740:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "2k1K3/7p/6p1/1p2RrR1/8/8/8/8 w - -");
^
test.cpp:745:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "4k3/1ppn4/p5rr/1B3p2/2p1p3/1b3P2/PPP1P2R/3K3R w - -");
^
test.cpp:753:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position startpos moves d2d4 g7g6 g1f3 g8f6 c2c4 f8g7 b1c3 d7d5 d1b3 d5c4 b3c4 e8g8 e2e4 a7a6 e4e5 b7b5 c4b3 f6d7 e5e6 f7e6 f3g5 d7b6 g5e6 c8e6 b3e6 g8h8 c1e3 d8d6 e6d6 e7d6");
^
test.cpp:766:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position fen 2r2bk1/1pNb4/3p3q/p2Pp2n/2P1PpPP/5P2/PPn1Q3/2KR3R b - g3");
^
test.cpp:791:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position fen rbbqnknr/pppppppp/8/8/8/8/PPPPPPPP/RBBQNKNR w HAha - moves c2c4 c7c5 g1f3 e7e5 b1e4 e8d6 d2d3 d6e4 d3e4 g8e7 c1e3 b7b6 d1d3 c8b7 a1d1 b7c6 g2g4 f7f6 h1g1 h7h5 e3d2 h5...
^
test.cpp:792:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_go("go depth 6");
^
test.cpp:799:16: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_setoption("setoption name UCI_Chess960 value true");
^
test.cpp:801:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position fen qrknrnbb/pppppppp/8/8/8/8/PPPPPPPP/QRKNRNBB w EBeb -");
^
test.cpp:802:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_go("go depth 6");
^
test.cpp:808:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position fen 7k/8/8/7P/4B3/5K2/7P/8 w - - moves");
^
test.cpp:809:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_go("go depth 12");
^
test.cpp:832:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position fen 8/8/8/4k2K/1R3p2/8/6r1/8 w - -");
^
test.cpp:833:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_go("go depth 20");
^
test.cpp:839:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position fen 1rq5/p3kp2/2Bp1p2/1P2p1r1/QP3n2/2P5/5PPP/R4RK1 b - -");
^
test.cpp:840:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_go("go depth 12");
^
test.cpp:846:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position fen 1NQ5/k1p1p3/7p/pP2P1P1/2P5/2pq4/1n6/6K1 w - -");
^
test.cpp:847:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_go("go depth 12");
^
test.cpp:853:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position fen 2kr3r/pp1q1ppp/5n2/1Nb5/2Pp1B2/7Q/P4PPP/1R3RK1 w - -");
^
test.cpp:854:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_go("go depth 16");
^
test.cpp:860:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position fen 8/5p2/pk2p3/4P2p/2b1pP1P/P3P2B/8/7K w - -");
^
test.cpp:861:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_go("go depth 24");
^
test.cpp:867:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position fen 5rk1/2p4p/2p4r/3P4/4p1b1/1Q2NqPp/PP3P1K/R4R2 b - -");
^
test.cpp:868:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_go("go depth 16");
^
test.cpp:877:49: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
printf(INFO_STRING_PERFT_SPEED, global_nodes, end_time - start_time, 1000 * global_nodes / (end_time - start_time));
^~~~~~~~~~~~~~~~~~~~~
test.cpp:887:28: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position startpos moves");
^
test.cpp:898:29: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
sprintf(s, "Time = %d", search_start_time);
~~ ^~~~~~~~~~~~~~~~~
%ld
test.cpp:910:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/pppr2pp/3pKp2/2Q3bn/8/b6k/PPP1P2P/3R2n1 w - -");
^
127 warnings generated.
c++ -c -o uci.o uci.cpp
In file included from uci.cpp:33:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
uci.cpp:41:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments)
^
uci.cpp:80:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
write_log("Maverick's Log File", "maverick-log.txt", TRUE, TRUE);
^
uci.cpp:80:42: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
write_log("Maverick's Log File", "maverick-log.txt", TRUE, TRUE);
^
uci.cpp:92:37: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
write_log(input_string, "maverick-log.txt", TRUE, FALSE);
^
uci.cpp:96:9: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:103:9: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:108:9: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:113:9: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:114:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("go", input_string)==0) || (index_of("GO", input_string)==0))
^
uci.cpp:114:60: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("go", input_string)==0) || (index_of("GO", input_string)==0))
^
uci.cpp:118:9: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:119:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("position", input_string)==0) || (index_of("POSITION", input_string)==0))
^
uci.cpp:119:66: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("position", input_string)==0) || (index_of("POSITION", input_string)==0))
^
uci.cpp:123:9: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:124:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("stop", input_string)==0) || (index_of("STOP", input_string)==0))
^
uci.cpp:124:62: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("stop", input_string)==0) || (index_of("STOP", input_string)==0))
^
uci.cpp:128:9: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:129:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("ponderhit", input_string)==0) || (index_of("PONDERHIT", input_string)==0))
^
uci.cpp:129:67: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("ponderhit", input_string)==0) || (index_of("PONDERHIT", input_string)==0))
^
uci.cpp:133:9: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:134:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("ucinewgame", input_string) == 0) || (index_of("UCINEWGAME", input_string) == 0))
^
uci.cpp:134:70: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("ucinewgame", input_string) == 0) || (index_of("UCINEWGAME", input_string) == 0))
^
uci.cpp:138:9: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:139:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("setoption", input_string)==0) || (index_of("SETOPTION", input_string)==0)) {
^
uci.cpp:139:67: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("setoption", input_string)==0) || (index_of("SETOPTION", input_string)==0)) {
^
uci.cpp:144:3: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:145:17: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("debug", input_string) == 0) || (index_of("DEBUG", input_string) == 0)) {
^
uci.cpp:145:59: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("debug", input_string) == 0) || (index_of("DEBUG", input_string) == 0)) {
^
uci.cpp:151:3: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:152:17: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("bench", input_string) == 0) || (index_of("BENCH", input_string) == 0)) {
^
uci.cpp:152:59: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("bench", input_string) == 0) || (index_of("BENCH", input_string) == 0)) {
^
uci.cpp:158:9: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:185:26: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
write_log(t, "maverick-log.txt", TRUE, TRUE);
^
uci.cpp:273:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
send_info("ERROR - I can't stop because I'm not thinking!");
^
uci.cpp:274:24: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_send_state("After Stop");
^
uci.cpp:315:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
n = index_of("moves", s);
^
uci.cpp:317:22: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
n = index_of("MOVES", s);
^
uci.cpp:329:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
send_info("ERROR - I'm not pondering!");
^
uci.cpp:330:24: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_send_state("After False PonderHit");
^
uci.cpp:342:39: warning: format specifies type 'int' but the argument has type 't_chess_time' (aka 'long') [-Wformat]
sprintf(s, INFO_STRING_ABORT, abort_move_time, (long) t1 - search_start_time, nodes + qnodes);
^~~~~~~~~~~~~~~
uci.cpp:342:56: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
sprintf(s, INFO_STRING_ABORT, abort_move_time, (long) t1 - search_start_time, nodes + qnodes);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uci.cpp:370:1: warning: '/*' within block comment [-Wcomment]
/*=======================================================*/
^
uci.cpp:374:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Hash", s) == 2) || (index_of("hash", s) == 2) || (index_of("HASH", s) == 2)) {
^
uci.cpp:374:49: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Hash", s) == 2) || (index_of("hash", s) == 2) || (index_of("HASH", s) == 2)) {
^
uci.cpp:374:79: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Hash", s) == 2) || (index_of("hash", s) == 2) || (index_of("HASH", s) == 2)) {
^
uci.cpp:379:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("OwnBook", s) == 2) || (index_of("ownbook", s) == 2) || (index_of("OWNBOOK", s) == 2)) {
^
uci.cpp:379:52: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("OwnBook", s) == 2) || (index_of("ownbook", s) == 2) || (index_of("OWNBOOK", s) == 2)) {
^
uci.cpp:379:85: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("OwnBook", s) == 2) || (index_of("ownbook", s) == 2) || (index_of("OWNBOOK", s) == 2)) {
^
uci.cpp:387:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Opening", s) == 2) || (index_of("opening", s) == 2) || (index_of("OPENING", s) == 2)) && ((index_of("Book", s) == 3) || (index_of("book", s) == 3) || (index_of("BOOK", s) == 3))) {
^
uci.cpp:387:53: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Opening", s) == 2) || (index_of("opening", s) == 2) || (index_of("OPENING", s) == 2)) && ((index_of("Book", s) == 3) || (index_of("book", s) == 3) || (index_of("BOOK", s) == 3))) {
^
uci.cpp:387:86: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Opening", s) == 2) || (index_of("opening", s) == 2) || (index_of("OPENING", s) == 2)) && ((index_of("Book", s) == 3) || (index_of("book", s) == 3) || (index_of("BOOK", s) == 3))) {
^
uci.cpp:387:121: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Opening", s) == 2) || (index_of("opening", s) == 2) || (index_of("OPENING", s) == 2)) && ((index_of("Book", s) == 3) || (index_of("book", s) == 3) || (index_of("BOOK", s) == 3))) {
^
uci.cpp:387:151: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Opening", s) == 2) || (index_of("opening", s) == 2) || (index_of("OPENING", s) == 2)) && ((index_of("Book", s) == 3) || (index_of("book", s) == 3) || (index_of("BOOK", s) == 3))) {
^
uci.cpp:387:181: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Opening", s) == 2) || (index_of("opening", s) == 2) || (index_of("OPENING", s) == 2)) && ((index_of("Book", s) == 3) || (index_of("book", s) == 3) || (index_of("BOOK", s) == 3))) {
^
uci.cpp:393:17: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Book", s) == 2) || (index_of("book", s) == 2) || (index_of("BOOK", s) == 2)) && ((index_of("Selectivity", s) == 3) || (index_of("selectivity", s) == 3) || (index_of("SELECTIVITY", s) == 3))) {
^
uci.cpp:393:47: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Book", s) == 2) || (index_of("book", s) == 2) || (index_of("BOOK", s) == 2)) && ((index_of("Selectivity", s) == 3) || (index_of("selectivity", s) == 3) || (index_of("SELECTIVITY", s) == 3))) {
^
uci.cpp:393:77: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Book", s) == 2) || (index_of("book", s) == 2) || (index_of("BOOK", s) == 2)) && ((index_of("Selectivity", s) == 3) || (index_of("selectivity", s) == 3) || (index_of("SELECTIVITY", s) == 3))) {
^
uci.cpp:393:109: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Book", s) == 2) || (index_of("book", s) == 2) || (index_of("BOOK", s) == 2)) && ((index_of("Selectivity", s) == 3) || (index_of("selectivity", s) == 3) || (index_of("SELECTIVITY", s) == 3))) {
^
uci.cpp:393:146: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Book", s) == 2) || (index_of("book", s) == 2) || (index_of("BOOK", s) == 2)) && ((index_of("Selectivity", s) == 3) || (index_of("selectivity", s) == 3) || (index_of("SELECTIVITY", s) == 3))) {
^
uci.cpp:393:183: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Book", s) == 2) || (index_of("book", s) == 2) || (index_of("BOOK", s) == 2)) && ((index_of("Selectivity", s) == 3) || (index_of("selectivity", s) == 3) || (index_of("SELECTIVITY", s) == 3))) {
^
uci.cpp:394:17: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Random", s) == 5) || (index_of("random", s) == 5) || (index_of("RANDOM", s) == 5))
^
uci.cpp:394:49: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Random", s) == 5) || (index_of("random", s) == 5) || (index_of("RANDOM", s) == 5))
^
uci.cpp:394:81: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Random", s) == 5) || (index_of("random", s) == 5) || (index_of("RANDOM", s) == 5))
^
uci.cpp:396:22: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Varied", s) == 5) || (index_of("varied", s) == 5) || (index_of("VARIED", s) == 5))
^
uci.cpp:396:54: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Varied", s) == 5) || (index_of("varied", s) == 5) || (index_of("VARIED", s) == 5))
^
uci.cpp:396:86: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Varied", s) == 5) || (index_of("varied", s) == 5) || (index_of("VARIED", s) == 5))
^
uci.cpp:398:22: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Normal", s) == 5) || (index_of("normal", s) == 5) || (index_of("NORMAL", s) == 5))
^
uci.cpp:398:54: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Normal", s) == 5) || (index_of("normal", s) == 5) || (index_of("NORMAL", s) == 5))
^
uci.cpp:398:86: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Normal", s) == 5) || (index_of("normal", s) == 5) || (index_of("NORMAL", s) == 5))
^
uci.cpp:400:22: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Discerning", s) == 5) || (index_of("discerning", s) == 5) || (index_of("DISCERNING", s) == 5))
^
uci.cpp:400:58: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Discerning", s) == 5) || (index_of("discerning", s) == 5) || (index_of("DISCERNING", s) == 5))
^
uci.cpp:400:94: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Discerning", s) == 5) || (index_of("discerning", s) == 5) || (index_of("DISCERNING", s) == 5))
^
uci.cpp:402:22: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Tournament", s) == 5) || (index_of("tournament", s) == 5) || (index_of("TOURNAMENT", s) == 5))
^
uci.cpp:402:58: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Tournament", s) == 5) || (index_of("tournament", s) == 5) || (index_of("TOURNAMENT", s) == 5))
^
uci.cpp:402:94: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Tournament", s) == 5) || (index_of("tournament", s) == 5) || (index_of("TOURNAMENT", s) == 5))
^
uci.cpp:408:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("UCI_Chess960", s) == 2) || (index_of("UCI_CHESS960", s) == 2) || (index_of("uci_chess960", s) == 2) || (index_of("UCI_chess960", s) == 2)) {
^
uci.cpp:408:57: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("UCI_Chess960", s) == 2) || (index_of("UCI_CHESS960", s) == 2) || (index_of("uci_chess960", s) == 2) || (index_of("UCI_chess960", s) == 2)) {
^
uci.cpp:408:95: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("UCI_Chess960", s) == 2) || (index_of("UCI_CHESS960", s) == 2) || (index_of("uci_chess960", s) == 2) || (index_of("UCI_chess960", s) == 2)) {
^
uci.cpp:408:133: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("UCI_Chess960", s) == 2) || (index_of("UCI_CHESS960", s) == 2) || (index_of("uci_chess960", s) == 2) || (index_of("UCI_chess960", s) == 2)) {
^
uci.cpp:416:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("UCI_ShowCurrLine", s) == 2) || (index_of("UCI_SHOWCURRLINE", s) == 2) || (index_of("uci_showcurrline", s) == 2)) {
^
uci.cpp:416:61: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("UCI_ShowCurrLine", s) == 2) || (index_of("UCI_SHOWCURRLINE", s) == 2) || (index_of("uci_showcurrline", s) == 2)) {
^
uci.cpp:416:103: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("UCI_ShowCurrLine", s) == 2) || (index_of("UCI_SHOWCURRLINE", s) == 2) || (index_of("uci_showcurrline", s) == 2)) {
^
uci.cpp:424:16: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Statistics", s) == 4) || (index_of("statistics", s) == 4) || (index_of("STATISTICS", s) == 4)) {
^
uci.cpp:424:52: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Statistics", s) == 4) || (index_of("statistics", s) == 4) || (index_of("STATISTICS", s) == 4)) {
^
uci.cpp:424:88: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Statistics", s) == 4) || (index_of("statistics", s) == 4) || (index_of("STATISTICS", s) == 4)) {
^
uci.cpp:432:16: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Futility", s) == 2) || (index_of("futility", s) == 2) || (index_of("FUTILITY", s) == 2)) {
^
uci.cpp:432:50: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Futility", s) == 2) || (index_of("futility", s) == 2) || (index_of("FUTILITY", s) == 2)) {
^
uci.cpp:432:84: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Futility", s) == 2) || (index_of("futility", s) == 2) || (index_of("FUTILITY", s) == 2)) {
^
uci.cpp:444:1: warning: '/*' within block comment [-Wcomment]
/*=======================================================*/
^
uci.cpp:461:40: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
sprintf(s, INFO_STRING_CHECKMATE, v, (int) t, depth, deepest, nodes + qnodes);
^~~~~~~
uci.cpp:465:40: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
sprintf(s, INFO_STRING_CHECKMATE, v, (int) t, depth, deepest, nodes + qnodes);
^~~~~~~
uci.cpp:468:40: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
sprintf(s, INFO_STRING_SCORE, score, (int) t, depth, deepest, nodes + qnodes);
^~~~~~~
uci.cpp:501:45: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
sprintf(s, INFO_STRING_FAIL_HIGH_MATE, v, (int) t, depth, deepest, nodes + qnodes);
^~~~~~~
uci.cpp:505:45: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
sprintf(s, INFO_STRING_FAIL_HIGH_MATE, v, (int) t, depth, deepest, nodes + qnodes);
^~~~~~~
uci.cpp:508:50: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
sprintf(s, INFO_STRING_FAIL_HIGH_SCORE, score, (int) t, depth, deepest, nodes + qnodes);
^~~~~~~
uci.cpp:530:44: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
sprintf(s, INFO_STRING_FAIL_LOW_MATE, v, (int) t, depth, deepest, nodes + qnodes);
^~~~~~~
uci.cpp:534:50: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
sprintf(s, INFO_STRING_FAIL_LOW_MATE, v, (int) t, depth, deepest, nodes + qnodes);
^~~~~~~
uci.cpp:537:55: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
sprintf(s, INFO_STRING_FAIL_LOW_SCORE, score, (int) t, depth, deepest, nodes + qnodes);
^~~~~~~
uci.cpp:597:41: warning: format string contains '\0' within the string body [-Wformat]
sprintf(s,"info depth %d seldepth %d\0", search_ply, deepest);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
uci.cpp:755:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("ponder", s);
^
uci.cpp:758:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("PONDER", s);
^
uci.cpp:762:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("wtime",s);
^
uci.cpp:765:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("WTIME",s);
^
uci.cpp:768:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("winc",s);
^
uci.cpp:771:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("WINC",s);
^
uci.cpp:775:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("btime",s);
^
uci.cpp:778:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("BTIME",s);
^
uci.cpp:781:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("binc",s);
^
uci.cpp:784:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("BINC",s);
^
uci.cpp:788:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("movestogo",s);
^
uci.cpp:791:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("MOVESTOGO",s);
^
uci.cpp:795:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("depth",s);
^
uci.cpp:798:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("DEPTH",s);
^
uci.cpp:802:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("nodes",s);
^
uci.cpp:805:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("NODES",s);
^
uci.cpp:809:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("mate",s);
^
uci.cpp:812:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("MATE",s);
^
uci.cpp:816:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("movetime",s);
^
uci.cpp:819:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("MOVETIME",s);
^
uci.cpp:823:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("infinite", s);
^
uci.cpp:826:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("INFINITE", s);
^
uci.cpp:914:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (index_of("on", s) >= 0 || index_of("ON", s) >= 0)
^
uci.cpp:914:44: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (index_of("on", s) >= 0 || index_of("ON", s) >= 0)
^
124 warnings generated.
c++ -c -o utils.o utils.cpp
In file included from utils.cpp:19:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
1 warning generated.
c++ -c -o write.o write.cpp
In file included from write.cpp:21:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
write.cpp:90:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(tfile, s);
^
write.cpp:97:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(tfile, s);
^
write.cpp:102:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(tfile, s);
^
write.cpp:108:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(tfile, s);
^
write.cpp:122:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(tfile, s);
^
write.cpp:139:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(tfile, s);
^
write.cpp:155:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(tfile, s);
^
write.cpp:162:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(tfile, s);
^
write.cpp:186:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(tfile, t);
^
10 warnings generated.
gcc -O3 -Wall -pthread -c bitboards.cpp board.cpp data.cpp draw.cpp eval.cpp fen.cpp futility.cpp genmoves.cpp hash.cpp main.cpp make.cpp materialhash.cpp movedirectory.cpp movelist.cpp moveorder.cpp openingbook.cpp pawnhash.cpp perft.cpp pv.cpp root.cpp search.cpp see.cpp test.cpp uci.cpp utils.cpp write.cpp
In file included from bitboards.cpp:16:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
bitboards.cpp:48:19: warning: unused variable 'color' [-Wunused-variable]
t_chess_color color;
^
bitboards.cpp:275:56: warning: integer constant is larger than the largest signed integer type
assert(cannot_catch_pawn_mask[BLACK][BLACK][G5] == 18446470308215914496);
^
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
3 warnings generated.
In file included from board.cpp:25:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
board.cpp:365:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(board, "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -");
^
board.cpp:494:21: warning: unused variable 'b_count' [-Wunused-variable]
int i, p_count, b_count;
^
3 warnings generated.
In file included from data.cpp:21:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
1 warning generated.
In file included from draw.cpp:13:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
1 warning generated.
In file included from eval.cpp:24:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
eval.cpp:218:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (attack_squares = (moves & eval->king_zone[opponent])) {
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
eval.cpp:218:32: note: place parentheses around the assignment to silence this warning
if (attack_squares = (moves & eval->king_zone[opponent])) {
^
( )
eval.cpp:218:32: note: use '==' to turn this assignment into an equality comparison
if (attack_squares = (moves & eval->king_zone[opponent])) {
^
==
eval.cpp:260:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (attack_squares = ((rook_moves | bishop_moves) & eval->king_zone[opponent])) {
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
eval.cpp:260:32: note: place parentheses around the assignment to silence this warning
if (attack_squares = ((rook_moves | bishop_moves) & eval->king_zone[opponent])) {
^
( )
eval.cpp:260:32: note: use '==' to turn this assignment into an equality comparison
if (attack_squares = ((rook_moves | bishop_moves) & eval->king_zone[opponent])) {
^
==
eval.cpp:339:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (attack_squares = (moves & eval->king_zone[opponent])) {
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
eval.cpp:339:32: note: place parentheses around the assignment to silence this warning
if (attack_squares = (moves & eval->king_zone[opponent])) {
^
( )
eval.cpp:339:32: note: use '==' to turn this assignment into an equality comparison
if (attack_squares = (moves & eval->king_zone[opponent])) {
^
==
eval.cpp:394:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (attack_squares = (moves & eval->king_zone[opponent])) {
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
eval.cpp:394:32: note: place parentheses around the assignment to silence this warning
if (attack_squares = (moves & eval->king_zone[opponent])) {
^
( )
eval.cpp:394:32: note: use '==' to turn this assignment into an equality comparison
if (attack_squares = (moves & eval->king_zone[opponent])) {
^
==
eval.cpp:419:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (central_kq_pawns[color] & board->pieces[color][PAWN])){
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
eval.cpp:419:9: note: place parentheses around the assignment to silence this warning
if (b = (central_kq_pawns[color] & board->pieces[color][PAWN])){
^
( )
eval.cpp:419:9: note: use '==' to turn this assignment into an equality comparison
if (b = (central_kq_pawns[color] & board->pieces[color][PAWN])){
^
==
eval.cpp:155:19: warning: unused variable 'piece_type' [-Wunused-variable]
t_chess_piece piece_type;
^
7 warnings generated.
In file included from fen.cpp:15:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
1 warning generated.
In file included from futility.cpp:15:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
1 warning generated.
In file included from genmoves.cpp:15:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
genmoves.cpp:419:16: warning: unused variable 'not_occupied_to_move' [-Wunused-variable]
t_bitboard not_occupied_to_move = ~board->occupied[to_move];
^
genmoves.cpp:823:16: warning: unused variable 'not_occupied_to_move' [-Wunused-variable]
t_bitboard not_occupied_to_move = ~board->occupied[to_move];
^
genmoves.cpp:1031:16: warning: unused variable 'not_occupied_to_move' [-Wunused-variable]
t_bitboard not_occupied_to_move = ~board->occupied[to_move];
^
genmoves.cpp:1223:32: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
write_board(board, "board.txt");
^
genmoves.cpp:1225:36: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
write_move_list(moves, "move-list.txt");
^
6 warnings generated.
In file included from hash.cpp:17:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
1 warning generated.
In file included from main.cpp:21:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
main.cpp:36:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -");
^
2 warnings generated.
In file included from make.cpp:15:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
make.cpp:326:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (board->in_check = attack_count(board, board->king_square[opponent], color))
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make.cpp:326:29: note: place parentheses around the assignment to silence this warning
if (board->in_check = attack_count(board, board->king_square[opponent], color))
^
( )
make.cpp:326:29: note: use '==' to turn this assignment into an equality comparison
if (board->in_check = attack_count(board, board->king_square[opponent], color))
^
==
2 warnings generated.
In file included from materialhash.cpp:17:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
1 warning generated.
In file included from movedirectory.cpp:25:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
movedirectory.cpp:102:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
send_info("Castling Messed Up!!");
^
movedirectory.cpp:746:17: warning: unused variable 's' [-Wunused-variable]
static char s[64];
^
movedirectory.cpp:748:11: warning: unused variable 'not_mask' [-Wunused-variable]
uchar not_mask;
^
4 warnings generated.
In file included from movelist.cpp:15:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
1 warning generated.
In file included from moveorder.cpp:15:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
1 warning generated.
In file included from openingbook.cpp:27:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
openingbook.cpp:51:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
openingbook.cpp:57:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
openingbook.cpp:63:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
openingbook.cpp:73:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
openingbook.cpp:79:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
openingbook.cpp:84:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
7 warnings generated.
In file included from pawnhash.cpp:17:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
pawnhash.cpp:495:23: warning: unused variable 'opponent' [-Wunused-variable]
t_chess_color opponent = OPPONENT(color);
^
2 warnings generated.
In file included from perft.cpp:15:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
perft.cpp:40:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
printf(move_as_str(move_list->move[i]));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
perft.cpp:52:75: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
printf(INFO_STRING_PERFT_SPEED, (unsigned long long) total_nodes, (int) finish - start, 1000 * total_nodes / (finish - start));
^~~~~~~~~~~~~~~~~~~~
3 warnings generated.
In file included from pv.cpp:16:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
pv.cpp:101:9: warning: expression result unused [-Wunused-value]
*fail_high_count++;
^~~~~~~~~~~~~~~~~~
pv.cpp:108:13: warning: expression result unused [-Wunused-value]
*fail_low_count++;
^~~~~~~~~~~~~~~~~
3 warnings generated.
In file included from root.cpp:21:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
root.cpp:33:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
send_info("Playing Chess960 / FRC");
^
root.cpp:87:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
send_info("Maverick Book Move!");
^
3 warnings generated.
In file included from search.cpp:21:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
search.cpp:348:16: warning: unused variable 'opponent' [-Wunused-variable]
t_chess_color opponent = OPPONENT(to_move);
^
search.cpp:1105:27: warning: unused variable 'hash_move' [-Wunused-variable]
struct t_move_record *hash_move = NULL;
^
3 warnings generated.
In file included from see.cpp:15:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
see.cpp:78:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][PAWN] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:78:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][PAWN] & attacks[opponent])) {
^
( )
see.cpp:78:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][PAWN] & attacks[opponent])) {
^
==
see.cpp:87:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][KNIGHT] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:87:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][KNIGHT] & attacks[opponent])) {
^
( )
see.cpp:87:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][KNIGHT] & attacks[opponent])) {
^
==
see.cpp:95:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][BISHOP] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:95:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][BISHOP] & attacks[opponent])) {
^
( )
see.cpp:95:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][BISHOP] & attacks[opponent])) {
^
==
see.cpp:109:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][ROOK] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:109:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][ROOK] & attacks[opponent])) {
^
( )
see.cpp:109:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][ROOK] & attacks[opponent])) {
^
==
see.cpp:123:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][QUEEN] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:123:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][QUEEN] & attacks[opponent])) {
^
( )
see.cpp:123:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][QUEEN] & attacks[opponent])) {
^
==
see.cpp:137:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][KING] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:137:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][KING] & attacks[opponent])) {
^
( )
see.cpp:137:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][KING] & attacks[opponent])) {
^
==
see.cpp:162:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[to_move][PAWN] & attacks[to_move])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:162:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[to_move][PAWN] & attacks[to_move])) {
^
( )
see.cpp:162:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[to_move][PAWN] & attacks[to_move])) {
^
==
see.cpp:171:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[to_move][KNIGHT] & attacks[to_move])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:171:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[to_move][KNIGHT] & attacks[to_move])) {
^
( )
see.cpp:171:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[to_move][KNIGHT] & attacks[to_move])) {
^
==
see.cpp:179:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[to_move][BISHOP] & attacks[to_move])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:179:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[to_move][BISHOP] & attacks[to_move])) {
^
( )
see.cpp:179:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[to_move][BISHOP] & attacks[to_move])) {
^
==
see.cpp:193:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[to_move][ROOK] & attacks[to_move])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:193:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[to_move][ROOK] & attacks[to_move])) {
^
( )
see.cpp:193:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[to_move][ROOK] & attacks[to_move])) {
^
==
see.cpp:207:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[to_move][QUEEN] & attacks[to_move])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:207:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[to_move][QUEEN] & attacks[to_move])) {
^
( )
see.cpp:207:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[to_move][QUEEN] & attacks[to_move])) {
^
==
see.cpp:221:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[to_move][KING] & attacks[to_move])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:221:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[to_move][KING] & attacks[to_move])) {
^
( )
see.cpp:221:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[to_move][KING] & attacks[to_move])) {
^
==
see.cpp:298:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][PAWN] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:298:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][PAWN] & attacks[opponent])) {
^
( )
see.cpp:298:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][PAWN] & attacks[opponent])) {
^
==
see.cpp:307:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][KNIGHT] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:307:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][KNIGHT] & attacks[opponent])) {
^
( )
see.cpp:307:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][KNIGHT] & attacks[opponent])) {
^
==
see.cpp:315:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][BISHOP] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:315:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][BISHOP] & attacks[opponent])) {
^
( )
see.cpp:315:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][BISHOP] & attacks[opponent])) {
^
==
see.cpp:329:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][ROOK] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:329:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][ROOK] & attacks[opponent])) {
^
( )
see.cpp:329:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][ROOK] & attacks[opponent])) {
^
==
see.cpp:343:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][QUEEN] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:343:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][QUEEN] & attacks[opponent])) {
^
( )
see.cpp:343:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][QUEEN] & attacks[opponent])) {
^
==
see.cpp:357:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[opponent][KING] & attacks[opponent])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:357:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[opponent][KING] & attacks[opponent])) {
^
( )
see.cpp:357:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[opponent][KING] & attacks[opponent])) {
^
==
see.cpp:382:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[color][PAWN] & attacks[color])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:382:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[color][PAWN] & attacks[color])) {
^
( )
see.cpp:382:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[color][PAWN] & attacks[color])) {
^
==
see.cpp:391:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[color][KNIGHT] & attacks[color])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:391:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[color][KNIGHT] & attacks[color])) {
^
( )
see.cpp:391:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[color][KNIGHT] & attacks[color])) {
^
==
see.cpp:399:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[color][BISHOP] & attacks[color])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:399:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[color][BISHOP] & attacks[color])) {
^
( )
see.cpp:399:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[color][BISHOP] & attacks[color])) {
^
==
see.cpp:413:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[color][ROOK] & attacks[color])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:413:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[color][ROOK] & attacks[color])) {
^
( )
see.cpp:413:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[color][ROOK] & attacks[color])) {
^
==
see.cpp:427:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[color][QUEEN] & attacks[color])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:427:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[color][QUEEN] & attacks[color])) {
^
( )
see.cpp:427:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[color][QUEEN] & attacks[color])) {
^
==
see.cpp:441:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (b = (board->pieces[color][KING] & attacks[color])) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
see.cpp:441:15: note: place parentheses around the assignment to silence this warning
if (b = (board->pieces[color][KING] & attacks[color])) {
^
( )
see.cpp:441:15: note: use '==' to turn this assignment into an equality comparison
if (b = (board->pieces[color][KING] & attacks[color])) {
^
==
25 warnings generated.
In file included from test.cpp:21:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
test.cpp:76:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -");
^
test.cpp:78:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r5r1/n1q1pP1k/3pPppp/P1pP4/2P4N/R1B5/2Q3PP/7K w - -");
^
test.cpp:88:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r5r1/n1q1pP1k/3pPppp/P1pP4/2P4N/R1B5/2Q3PP/7K w - -");
^
test.cpp:102:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "1r2k2r/p1ppqpb1/b3pnp1/3PN3/1pn1P3/2N2Q1p/PPPBBPPP/R4K1R w - -");
^
test.cpp:108:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "4q3/3P1P2/b4N2/8/3Q2Bb/2p3B1/1k4N1/4K1Nr w - -");
^
test.cpp:117:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "1r2k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R4K1R w --k- -");
^
test.cpp:129:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "Rr4kr/8/8/8/8/8/PPPP4/R1K5 w Ahb -");
^
test.cpp:139:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "1r1kbb1r/1pp2ppp/3npn2/3pN3/1Q3P2/4PN2/2PP2PP/qR1KBB1R w HBhb -");
^
test.cpp:145:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rkrbqnb1/pp2p2p/3p1pp1/2p1nP2/2P1P3/3P2N1/PP4PP/RKRBQNB1 w CAca -");
^
test.cpp:148:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
write_move_list(moves, "movelist.txt");
^
test.cpp:168:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkb1r/ppppp1pp/7n/5p2/4P3/8/PPPP1PPP/RNBQKBNR w KQkq -");
^
test.cpp:184:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r3Rbk1/2p2p1p/p2p4/1p1P2q1/8/PBPQ2pP/1P3P1P/3R2K1 b - -");
^
test.cpp:223:21: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "qr1kbb1r/1pp2ppp/3npn2/3pN3/1p3P2/4PN2/P1PP2PP/QR1KBB1R w HBhb -");
^
test.cpp:206:6: warning: unused variable 'i' [-Wunused-variable]
int i;
^
test.cpp:252:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1");
^
test.cpp:260:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq -");
^
test.cpp:268:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/2p5/3p4/KP5r/1R3p1k/8/4P1P1/8 w - -");
^
test.cpp:276:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r3k2r/Pppp1ppp/1b3nbN/nP6/BBP1P3/q4N2/Pp1P2PP/R2Q1RK1 w kq - 0 1");
^
test.cpp:287:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "1k6/1b6/8/8/7R/8/8/4K2R b K - 0 1");
^
test.cpp:294:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "3k4/3p4/8/K1P4r/8/8/8/8 b - - 0 1");
^
test.cpp:301:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/8/4k3/8/2p5/8/B2P2K1/8 w - - 0 1");
^
test.cpp:308:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/8/1k6/2b5/2pP4/8/5K2/8 b - d3 0 1");
^
test.cpp:315:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "5k2/8/8/8/8/8/8/4K2R w K - 0 1");
^
test.cpp:322:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "3k4/8/8/8/8/8/8/R3K3 w Q - 0 1");
^
test.cpp:329:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r3k2r/1b4bq/8/8/8/8/7B/R3K2R w KQkq - 0 1");
^
test.cpp:336:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r3k2r/8/3Q4/8/8/5q2/8/R3K2R b KQkq - 0 1");
^
test.cpp:343:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "2K2r2/4P3/8/8/8/8/8/3k4 w - - 0 1");
^
test.cpp:350:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/8/1P2K3/8/2n5/1q6/8/5k2 b - - 0 1");
^
test.cpp:357:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "4k3/1P6/8/8/8/8/K7/8 w - - 0 1");
^
test.cpp:364:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/P1k5/K7/8/8/8/8/8 w - - 0 1");
^
test.cpp:371:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "K1k5/8/P7/8/8/8/8/8 w - - 0 1");
^
test.cpp:378:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/k1P5/8/1K6/8/8/8/8 w - - 0 1");
^
test.cpp:385:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/8/2k5/5q2/5n2/8/5K2/8 b - - 0 1");
^
test.cpp:395:48: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
printf(INFO_STRING_PERFT_SPEED, global_nodes, perft_end_time - perft_start_time, 1000 * global_nodes / (perft_end_time - perft_start_time));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test.cpp:402:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r6b/p1pp1k2/1n6/8/4n3/2P3Pp/P1PBKP1P/R6R w - -");
^
test.cpp:403:27: warning: integer constant is larger than the largest signed integer type
ok &= (position->hash == 9349117323807073039);
^
test.cpp:405:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1");
^
test.cpp:408:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkbnr/ppp1pppp/8/3p4/4P3/8/PPPP1PPP/RNBQKBNR w KQkq d6 0 2");
^
test.cpp:411:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkbnr/ppp1pppp/8/3pP3/8/8/PPPP1PPP/RNBQKBNR b KQkq - 0 2");
^
test.cpp:414:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkbnr/ppp1p1pp/8/3pPp2/8/8/PPPP1PPP/RNBQKBNR w KQkq f6 0 3");
^
test.cpp:417:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkbnr/ppp1p1pp/8/3pPp2/8/8/PPPPKPPP/RNBQ1BNR b kq - 0 3");
^
test.cpp:420:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbq1bnr/ppp1pkpp/8/3pPp2/8/8/PPPPKPPP/RNBQ1BNR w - - 0 4");
^
test.cpp:423:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkbnr/p1pppppp/8/8/PpP4P/8/1P1PPPP1/RNBQKBNR b KQkq c3 0 3");
^
test.cpp:426:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "rnbqkbnr/p1pppppp/8/8/P6P/R1p5/1P1PPPP1/1NBQKBNR b Kkq - 0 4");
^
test.cpp:438:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/pppr2pp/3pKp2/2Q3bn/8/b6k/PPP1P2P/3R2n1 w - -");
^
test.cpp:455:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/8/2K5/4k1PQ/8/5P2/1N1P4/2R3B1 w - -");
^
test.cpp:474:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "5rN1/4P3/1B6/1B3k2/8/4P3/6PP/2RQK2R w K -");
^
test.cpp:504:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "1k6/8/8/5PP1/3Pp2p/P7/8/4K3 w - -");
^
test.cpp:509:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/2p5/3p4/KP5r/1R3p1k/8/4P1P1/8 w - -");
^
test.cpp:514:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r3k2r/Pppp1ppp/1b3nbN/nP6/BBP1P3/q4N2/Pp1P2PP/R2Q1RK1 w kq - 0 1");
^
test.cpp:519:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "1k6/8/8/4b3/8/3B4/K7/8 b - -");
^
test.cpp:524:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "4r3/pbrq1p1k/1p3Bpp/3p1n2/3PPPQ1/P6R/1P4PP/1B3RK1 w - -");
^
test.cpp:529:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "4r3/pbrq1p1k/1p2pBpp/3p1n2/3PPPQ1/P6R/1P4PP/1B3RK1 w - -");
^
test.cpp:534:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r5k1/pq2pn2/3pN1pp/n2P4/1rp1PQ2/1P3PP1/PN4K1/2R4R w - -");
^
test.cpp:539:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/5p1k/6p1/8/2PK4/p7/P5P1/8 b - -");
^
test.cpp:544:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/8/7k/2R1Q1n1/1pRp4/8/2B5/5K2 w - -");
^
test.cpp:549:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "3K4/6p1/2P5/3P4/7k/8/1B4B1/5N2 w - -");
^
test.cpp:554:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/6k1/2p5/7K/N7/2N5/PPPP1PPP/8 w - -");
^
test.cpp:559:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "3b2k1/ppp4p/4P1p1/2n1p2b/2B4B/2PP4/PP2N1PP/4K3 w - -");
^
test.cpp:564:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "5k2/p1pK3p/1p2Q1p1/5Pq1/4P3/8/P5P1/8 b - -");
^
test.cpp:569:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "4rbk1/pp3ppp/2p5/q1n2P2/2PRn2P/2N2Q2/PP2B1P1/1K5R b - -");
^
test.cpp:574:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "2kr1b1r/pppbqpp1/2n5/1B1pP2p/P2Pn3/5N2/1PN2PPP/R1BQ1RK1 b - -");
^
test.cpp:579:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r1bq1b1r/ppp3pp/4k3/3Np3/2B5/P4Q2/1P1P1PPP/n1BK3R b - -");
^
test.cpp:584:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r2q1rk1/2pb1p1p/pp1bpPp1/4n1P1/1n2P3/2N1BN1Q/P1P4P/2KR1B1R b - -");
^
test.cpp:589:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/6pp/6p1/Pp6/1P6/1PK5/4P1k1/8 w - -");
^
test.cpp:595:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r7/5pp1/5p1k/2pPp3/1pP4P/pP1B1KPN/P4P2/8 b - -");
^
test.cpp:600:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/2k5/1pP5/1P6/K7/8/8/8 w - -");
^
test.cpp:605:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "5k2/8/8/7P/8/7K/8/8 b - -");
^
test.cpp:610:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "6k1/8/7K/7P/8/8/8/8 b - -");
^
test.cpp:615:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/6k1/8/3P4/1K6/8/8/8 b - -");
^
test.cpp:620:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "2k5/2P1K3/1p6/1P6/8/8/8/8 b - -");
^
test.cpp:625:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r2r2k1/ppp4p/4p1p1/2B1Nb2/1PN2P2/3P2P1/P1P4P/5K2 w - -");
^
test.cpp:630:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "1NQ5/k1p1p3/7p/pP2P1P1/2P5/2pq4/1n6/6K1 w - -");
^
test.cpp:635:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "r1b1k3/1pq2pp1/p3p3/4p1Q1/3N2p1/1NP3Pr/PPP3Pb/R1BR3K w q -");
^
test.cpp:640:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "7k/6p1/K3p3/2P5/1P3r2/8/2R5/8 w - -");
^
test.cpp:646:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/4k3/8/8/6KP/8/5B2/8 w - -");
^
test.cpp:651:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/4k3/8/8/6KP/8/4B3/8 w - -");
^
test.cpp:656:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/2k5/8/8/6KP/8/4B3/8 b - -");
^
test.cpp:661:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/2k5/8/8/7P/8/4B3/6K1 w - -");
^
test.cpp:666:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/3k4/8/8/6P1/8/4B3/6K1 w - -");
^
test.cpp:671:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/8/8/k7/6P1/8/4B3/6K1 w - -");
^
test.cpp:676:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "7k/8/8/7P/4B3/5K2/7P/8 w - -");
^
test.cpp:690:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "2k1K3/7p/6p1/1p2RrR1/8/8/8/8 w - -");
^
test.cpp:691:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "e5b5");
^
test.cpp:694:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "g5f5");
^
test.cpp:697:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "g5g6");
^
test.cpp:702:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "e4b4");
^
test.cpp:705:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "g4f4");
^
test.cpp:708:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "g4g3");
^
test.cpp:711:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "k7/4n3/5n2/3p4/8/2N5/6B1/K6Q w - -");
^
test.cpp:712:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "c3d5");
^
test.cpp:715:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "k7/4n3/5n2/3p4/8/2N5/6B1/K7 w - -");
^
test.cpp:716:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "c3d5");
^
test.cpp:719:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "3k4/b7/1q6/8/3pK1RR/8/2N5/8 w - -");
^
test.cpp:720:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "c2d4");
^
test.cpp:723:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "3k4/8/1q6/8/3p2R1/7K/2N5/8 w - -");
^
test.cpp:724:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "c2d4");
^
test.cpp:727:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "Q7/p2k4/2pq4/3B4/8/8/6PP/n2Kb3 w - -");
^
test.cpp:728:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
move = lookup_move(position, "a8c6");
^
test.cpp:732:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "4k3/1ppn4/p5rr/1B3p2/2p1p3/1b3P2/PPP1P1BR/3K3R w - -");
^
test.cpp:740:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "2k1K3/7p/6p1/1p2RrR1/8/8/8/8 w - -");
^
test.cpp:745:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "4k3/1ppn4/p5rr/1B3p2/2p1p3/1b3P2/PPP1P2R/3K3R w - -");
^
test.cpp:753:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position startpos moves d2d4 g7g6 g1f3 g8f6 c2c4 f8g7 b1c3 d7d5 d1b3 d5c4 b3c4 e8g8 e2e4 a7a6 e4e5 b7b5 c4b3 f6d7 e5e6 f7e6 f3g5 d7b6 g5e6 c8e6 b3e6 g8h8 c1e3 d8d6 e6d6 e7d6");
^
test.cpp:766:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position fen 2r2bk1/1pNb4/3p3q/p2Pp2n/2P1PpPP/5P2/PPn1Q3/2KR3R b - g3");
^
test.cpp:791:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position fen rbbqnknr/pppppppp/8/8/8/8/PPPPPPPP/RBBQNKNR w HAha - moves c2c4 c7c5 g1f3 e7e5 b1e4 e8d6 d2d3 d6e4 d3e4 g8e7 c1e3 b7b6 d1d3 c8b7 a1d1 b7c6 g2g4 f7f6 h1g1 h7h5 e3d2 h5...
^
test.cpp:792:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_go("go depth 6");
^
test.cpp:799:16: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_setoption("setoption name UCI_Chess960 value true");
^
test.cpp:801:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position fen qrknrnbb/pppppppp/8/8/8/8/PPPPPPPP/QRKNRNBB w EBeb -");
^
test.cpp:802:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_go("go depth 6");
^
test.cpp:808:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position fen 7k/8/8/7P/4B3/5K2/7P/8 w - - moves");
^
test.cpp:809:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_go("go depth 12");
^
test.cpp:832:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position fen 8/8/8/4k2K/1R3p2/8/6r1/8 w - -");
^
test.cpp:833:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_go("go depth 20");
^
test.cpp:839:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position fen 1rq5/p3kp2/2Bp1p2/1P2p1r1/QP3n2/2P5/5PPP/R4RK1 b - -");
^
test.cpp:840:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_go("go depth 12");
^
test.cpp:846:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position fen 1NQ5/k1p1p3/7p/pP2P1P1/2P5/2pq4/1n6/6K1 w - -");
^
test.cpp:847:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_go("go depth 12");
^
test.cpp:853:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position fen 2kr3r/pp1q1ppp/5n2/1Nb5/2Pp1B2/7Q/P4PPP/1R3RK1 w - -");
^
test.cpp:854:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_go("go depth 16");
^
test.cpp:860:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position fen 8/5p2/pk2p3/4P2p/2b1pP1P/P3P2B/8/7K w - -");
^
test.cpp:861:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_go("go depth 24");
^
test.cpp:867:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position fen 5rk1/2p4p/2p4r/3P4/4p1b1/1Q2NqPp/PP3P1K/R4R2 b - -");
^
test.cpp:868:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_go("go depth 16");
^
test.cpp:877:49: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
printf(INFO_STRING_PERFT_SPEED, global_nodes, end_time - start_time, 1000 * global_nodes / (end_time - start_time));
^~~~~~~~~~~~~~~~~~~~~
test.cpp:887:28: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_position(position, "position startpos moves");
^
test.cpp:898:29: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
sprintf(s, "Time = %d", search_start_time);
~~ ^~~~~~~~~~~~~~~~~
%ld
test.cpp:910:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
set_fen(position, "8/pppr2pp/3pKp2/2Q3bn/8/b6k/PPP1P2P/3R2n1 w - -");
^
128 warnings generated.
In file included from uci.cpp:33:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
uci.cpp:41:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments)
^
uci.cpp:80:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
write_log("Maverick's Log File", "maverick-log.txt", TRUE, TRUE);
^
uci.cpp:80:42: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
write_log("Maverick's Log File", "maverick-log.txt", TRUE, TRUE);
^
uci.cpp:92:37: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
write_log(input_string, "maverick-log.txt", TRUE, FALSE);
^
uci.cpp:96:9: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:103:9: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:108:9: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:113:9: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:114:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("go", input_string)==0) || (index_of("GO", input_string)==0))
^
uci.cpp:114:60: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("go", input_string)==0) || (index_of("GO", input_string)==0))
^
uci.cpp:118:9: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:119:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("position", input_string)==0) || (index_of("POSITION", input_string)==0))
^
uci.cpp:119:66: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("position", input_string)==0) || (index_of("POSITION", input_string)==0))
^
uci.cpp:123:9: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:124:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("stop", input_string)==0) || (index_of("STOP", input_string)==0))
^
uci.cpp:124:62: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("stop", input_string)==0) || (index_of("STOP", input_string)==0))
^
uci.cpp:128:9: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:129:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("ponderhit", input_string)==0) || (index_of("PONDERHIT", input_string)==0))
^
uci.cpp:129:67: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("ponderhit", input_string)==0) || (index_of("PONDERHIT", input_string)==0))
^
uci.cpp:133:9: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:134:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("ucinewgame", input_string) == 0) || (index_of("UCINEWGAME", input_string) == 0))
^
uci.cpp:134:70: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("ucinewgame", input_string) == 0) || (index_of("UCINEWGAME", input_string) == 0))
^
uci.cpp:138:9: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:139:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("setoption", input_string)==0) || (index_of("SETOPTION", input_string)==0)) {
^
uci.cpp:139:67: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("setoption", input_string)==0) || (index_of("SETOPTION", input_string)==0)) {
^
uci.cpp:144:3: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:145:17: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("debug", input_string) == 0) || (index_of("DEBUG", input_string) == 0)) {
^
uci.cpp:145:59: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("debug", input_string) == 0) || (index_of("DEBUG", input_string) == 0)) {
^
uci.cpp:151:3: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:152:17: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("bench", input_string) == 0) || (index_of("BENCH", input_string) == 0)) {
^
uci.cpp:152:59: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("bench", input_string) == 0) || (index_of("BENCH", input_string) == 0)) {
^
uci.cpp:158:9: warning: '/*' within block comment [-Wcomment]
/*===============================================================*/
^
uci.cpp:185:26: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
write_log(t, "maverick-log.txt", TRUE, TRUE);
^
uci.cpp:273:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
send_info("ERROR - I can't stop because I'm not thinking!");
^
uci.cpp:274:24: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_send_state("After Stop");
^
uci.cpp:315:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
n = index_of("moves", s);
^
uci.cpp:317:22: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
n = index_of("MOVES", s);
^
uci.cpp:329:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
send_info("ERROR - I'm not pondering!");
^
uci.cpp:330:24: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
uci_send_state("After False PonderHit");
^
uci.cpp:342:39: warning: format specifies type 'int' but the argument has type 't_chess_time' (aka 'long') [-Wformat]
sprintf(s, INFO_STRING_ABORT, abort_move_time, (long) t1 - search_start_time, nodes + qnodes);
^~~~~~~~~~~~~~~
uci.cpp:342:56: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
sprintf(s, INFO_STRING_ABORT, abort_move_time, (long) t1 - search_start_time, nodes + qnodes);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uci.cpp:370:1: warning: '/*' within block comment [-Wcomment]
/*=======================================================*/
^
uci.cpp:374:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Hash", s) == 2) || (index_of("hash", s) == 2) || (index_of("HASH", s) == 2)) {
^
uci.cpp:374:49: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Hash", s) == 2) || (index_of("hash", s) == 2) || (index_of("HASH", s) == 2)) {
^
uci.cpp:374:79: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Hash", s) == 2) || (index_of("hash", s) == 2) || (index_of("HASH", s) == 2)) {
^
uci.cpp:379:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("OwnBook", s) == 2) || (index_of("ownbook", s) == 2) || (index_of("OWNBOOK", s) == 2)) {
^
uci.cpp:379:52: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("OwnBook", s) == 2) || (index_of("ownbook", s) == 2) || (index_of("OWNBOOK", s) == 2)) {
^
uci.cpp:379:85: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("OwnBook", s) == 2) || (index_of("ownbook", s) == 2) || (index_of("OWNBOOK", s) == 2)) {
^
uci.cpp:387:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Opening", s) == 2) || (index_of("opening", s) == 2) || (index_of("OPENING", s) == 2)) && ((index_of("Book", s) == 3) || (index_of("book", s) == 3) || (index_of("BOOK", s) == 3))) {
^
uci.cpp:387:53: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Opening", s) == 2) || (index_of("opening", s) == 2) || (index_of("OPENING", s) == 2)) && ((index_of("Book", s) == 3) || (index_of("book", s) == 3) || (index_of("BOOK", s) == 3))) {
^
uci.cpp:387:86: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Opening", s) == 2) || (index_of("opening", s) == 2) || (index_of("OPENING", s) == 2)) && ((index_of("Book", s) == 3) || (index_of("book", s) == 3) || (index_of("BOOK", s) == 3))) {
^
uci.cpp:387:121: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Opening", s) == 2) || (index_of("opening", s) == 2) || (index_of("OPENING", s) == 2)) && ((index_of("Book", s) == 3) || (index_of("book", s) == 3) || (index_of("BOOK", s) == 3))) {
^
uci.cpp:387:151: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Opening", s) == 2) || (index_of("opening", s) == 2) || (index_of("OPENING", s) == 2)) && ((index_of("Book", s) == 3) || (index_of("book", s) == 3) || (index_of("BOOK", s) == 3))) {
^
uci.cpp:387:181: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Opening", s) == 2) || (index_of("opening", s) == 2) || (index_of("OPENING", s) == 2)) && ((index_of("Book", s) == 3) || (index_of("book", s) == 3) || (index_of("BOOK", s) == 3))) {
^
uci.cpp:393:17: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Book", s) == 2) || (index_of("book", s) == 2) || (index_of("BOOK", s) == 2)) && ((index_of("Selectivity", s) == 3) || (index_of("selectivity", s) == 3) || (index_of("SELECTIVITY", s) == 3))) {
^
uci.cpp:393:47: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Book", s) == 2) || (index_of("book", s) == 2) || (index_of("BOOK", s) == 2)) && ((index_of("Selectivity", s) == 3) || (index_of("selectivity", s) == 3) || (index_of("SELECTIVITY", s) == 3))) {
^
uci.cpp:393:77: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Book", s) == 2) || (index_of("book", s) == 2) || (index_of("BOOK", s) == 2)) && ((index_of("Selectivity", s) == 3) || (index_of("selectivity", s) == 3) || (index_of("SELECTIVITY", s) == 3))) {
^
uci.cpp:393:109: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Book", s) == 2) || (index_of("book", s) == 2) || (index_of("BOOK", s) == 2)) && ((index_of("Selectivity", s) == 3) || (index_of("selectivity", s) == 3) || (index_of("SELECTIVITY", s) == 3))) {
^
uci.cpp:393:146: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Book", s) == 2) || (index_of("book", s) == 2) || (index_of("BOOK", s) == 2)) && ((index_of("Selectivity", s) == 3) || (index_of("selectivity", s) == 3) || (index_of("SELECTIVITY", s) == 3))) {
^
uci.cpp:393:183: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (((index_of("Book", s) == 2) || (index_of("book", s) == 2) || (index_of("BOOK", s) == 2)) && ((index_of("Selectivity", s) == 3) || (index_of("selectivity", s) == 3) || (index_of("SELECTIVITY", s) == 3))) {
^
uci.cpp:394:17: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Random", s) == 5) || (index_of("random", s) == 5) || (index_of("RANDOM", s) == 5))
^
uci.cpp:394:49: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Random", s) == 5) || (index_of("random", s) == 5) || (index_of("RANDOM", s) == 5))
^
uci.cpp:394:81: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Random", s) == 5) || (index_of("random", s) == 5) || (index_of("RANDOM", s) == 5))
^
uci.cpp:396:22: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Varied", s) == 5) || (index_of("varied", s) == 5) || (index_of("VARIED", s) == 5))
^
uci.cpp:396:54: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Varied", s) == 5) || (index_of("varied", s) == 5) || (index_of("VARIED", s) == 5))
^
uci.cpp:396:86: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Varied", s) == 5) || (index_of("varied", s) == 5) || (index_of("VARIED", s) == 5))
^
uci.cpp:398:22: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Normal", s) == 5) || (index_of("normal", s) == 5) || (index_of("NORMAL", s) == 5))
^
uci.cpp:398:54: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Normal", s) == 5) || (index_of("normal", s) == 5) || (index_of("NORMAL", s) == 5))
^
uci.cpp:398:86: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Normal", s) == 5) || (index_of("normal", s) == 5) || (index_of("NORMAL", s) == 5))
^
uci.cpp:400:22: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Discerning", s) == 5) || (index_of("discerning", s) == 5) || (index_of("DISCERNING", s) == 5))
^
uci.cpp:400:58: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Discerning", s) == 5) || (index_of("discerning", s) == 5) || (index_of("DISCERNING", s) == 5))
^
uci.cpp:400:94: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Discerning", s) == 5) || (index_of("discerning", s) == 5) || (index_of("DISCERNING", s) == 5))
^
uci.cpp:402:22: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Tournament", s) == 5) || (index_of("tournament", s) == 5) || (index_of("TOURNAMENT", s) == 5))
^
uci.cpp:402:58: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Tournament", s) == 5) || (index_of("tournament", s) == 5) || (index_of("TOURNAMENT", s) == 5))
^
uci.cpp:402:94: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
else if ((index_of("Tournament", s) == 5) || (index_of("tournament", s) == 5) || (index_of("TOURNAMENT", s) == 5))
^
uci.cpp:408:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("UCI_Chess960", s) == 2) || (index_of("UCI_CHESS960", s) == 2) || (index_of("uci_chess960", s) == 2) || (index_of("UCI_chess960", s) == 2)) {
^
uci.cpp:408:57: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("UCI_Chess960", s) == 2) || (index_of("UCI_CHESS960", s) == 2) || (index_of("uci_chess960", s) == 2) || (index_of("UCI_chess960", s) == 2)) {
^
uci.cpp:408:95: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("UCI_Chess960", s) == 2) || (index_of("UCI_CHESS960", s) == 2) || (index_of("uci_chess960", s) == 2) || (index_of("UCI_chess960", s) == 2)) {
^
uci.cpp:408:133: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("UCI_Chess960", s) == 2) || (index_of("UCI_CHESS960", s) == 2) || (index_of("uci_chess960", s) == 2) || (index_of("UCI_chess960", s) == 2)) {
^
uci.cpp:416:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("UCI_ShowCurrLine", s) == 2) || (index_of("UCI_SHOWCURRLINE", s) == 2) || (index_of("uci_showcurrline", s) == 2)) {
^
uci.cpp:416:61: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("UCI_ShowCurrLine", s) == 2) || (index_of("UCI_SHOWCURRLINE", s) == 2) || (index_of("uci_showcurrline", s) == 2)) {
^
uci.cpp:416:103: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("UCI_ShowCurrLine", s) == 2) || (index_of("UCI_SHOWCURRLINE", s) == 2) || (index_of("uci_showcurrline", s) == 2)) {
^
uci.cpp:424:16: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Statistics", s) == 4) || (index_of("statistics", s) == 4) || (index_of("STATISTICS", s) == 4)) {
^
uci.cpp:424:52: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Statistics", s) == 4) || (index_of("statistics", s) == 4) || (index_of("STATISTICS", s) == 4)) {
^
uci.cpp:424:88: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Statistics", s) == 4) || (index_of("statistics", s) == 4) || (index_of("STATISTICS", s) == 4)) {
^
uci.cpp:432:16: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Futility", s) == 2) || (index_of("futility", s) == 2) || (index_of("FUTILITY", s) == 2)) {
^
uci.cpp:432:50: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Futility", s) == 2) || (index_of("futility", s) == 2) || (index_of("FUTILITY", s) == 2)) {
^
uci.cpp:432:84: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if ((index_of("Futility", s) == 2) || (index_of("futility", s) == 2) || (index_of("FUTILITY", s) == 2)) {
^
uci.cpp:444:1: warning: '/*' within block comment [-Wcomment]
/*=======================================================*/
^
uci.cpp:461:40: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
sprintf(s, INFO_STRING_CHECKMATE, v, (int) t, depth, deepest, nodes + qnodes);
^~~~~~~
uci.cpp:465:40: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
sprintf(s, INFO_STRING_CHECKMATE, v, (int) t, depth, deepest, nodes + qnodes);
^~~~~~~
uci.cpp:468:40: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
sprintf(s, INFO_STRING_SCORE, score, (int) t, depth, deepest, nodes + qnodes);
^~~~~~~
uci.cpp:501:45: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
sprintf(s, INFO_STRING_FAIL_HIGH_MATE, v, (int) t, depth, deepest, nodes + qnodes);
^~~~~~~
uci.cpp:505:45: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
sprintf(s, INFO_STRING_FAIL_HIGH_MATE, v, (int) t, depth, deepest, nodes + qnodes);
^~~~~~~
uci.cpp:508:50: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
sprintf(s, INFO_STRING_FAIL_HIGH_SCORE, score, (int) t, depth, deepest, nodes + qnodes);
^~~~~~~
uci.cpp:530:44: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
sprintf(s, INFO_STRING_FAIL_LOW_MATE, v, (int) t, depth, deepest, nodes + qnodes);
^~~~~~~
uci.cpp:534:50: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
sprintf(s, INFO_STRING_FAIL_LOW_MATE, v, (int) t, depth, deepest, nodes + qnodes);
^~~~~~~
uci.cpp:537:55: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
sprintf(s, INFO_STRING_FAIL_LOW_SCORE, score, (int) t, depth, deepest, nodes + qnodes);
^~~~~~~
uci.cpp:597:41: warning: format string contains '\0' within the string body [-Wformat]
sprintf(s,"info depth %d seldepth %d\0", search_ply, deepest);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
uci.cpp:674:17: warning: unused variable 's' [-Wunused-variable]
static char s[2048];
^
uci.cpp:676:19: warning: unused variable 'opponent' [-Wunused-variable]
t_chess_color opponent = OPPONENT(color);
^
uci.cpp:755:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("ponder", s);
^
uci.cpp:758:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("PONDER", s);
^
uci.cpp:762:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("wtime",s);
^
uci.cpp:765:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("WTIME",s);
^
uci.cpp:768:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("winc",s);
^
uci.cpp:771:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("WINC",s);
^
uci.cpp:775:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("btime",s);
^
uci.cpp:778:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("BTIME",s);
^
uci.cpp:781:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("binc",s);
^
uci.cpp:784:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("BINC",s);
^
uci.cpp:788:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("movestogo",s);
^
uci.cpp:791:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("MOVESTOGO",s);
^
uci.cpp:795:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("depth",s);
^
uci.cpp:798:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("DEPTH",s);
^
uci.cpp:802:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("nodes",s);
^
uci.cpp:805:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("NODES",s);
^
uci.cpp:809:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("mate",s);
^
uci.cpp:812:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("MATE",s);
^
uci.cpp:816:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("movetime",s);
^
uci.cpp:819:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("MOVETIME",s);
^
uci.cpp:823:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("infinite", s);
^
uci.cpp:826:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
i = index_of("INFINITE", s);
^
uci.cpp:741:19: warning: unused variable 'opponent' [-Wunused-variable]
t_chess_color opponent = OPPONENT(color);
^
uci.cpp:740:12: warning: unused variable 'd' [-Wunused-variable]
double d;
^
uci.cpp:867:21: warning: unused variable 't' [-Wunused-variable]
static char t[2048];
^
uci.cpp:914:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (index_of("on", s) >= 0 || index_of("ON", s) >= 0)
^
uci.cpp:914:44: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
if (index_of("on", s) >= 0 || index_of("ON", s) >= 0)
^
129 warnings generated.
In file included from utils.cpp:19:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
1 warning generated.
In file included from write.cpp:21:
./procs.h:11:10: warning: calling convention '__stdcall' ignored for this target [-Wignored-attributes]
unsigned __stdcall engine_loop(void* pArguments);
^
write.cpp:90:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(tfile, s);
^
write.cpp:97:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(tfile, s);
^
write.cpp:102:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(tfile, s);
^
write.cpp:108:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(tfile, s);
^
write.cpp:122:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(tfile, s);
^
write.cpp:139:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(tfile, s);
^
write.cpp:155:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(tfile, s);
^
write.cpp:162:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(tfile, s);
^
write.cpp:186:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(tfile, t);
^
10 warnings generated.
gcc -O3 -Wall -o maverick-1.5-osx-64 bitboards.o board.o data.o draw.o eval.o fen.o futility.o genmoves.o hash.o main.o make.o materialhash.o movedirectory.o movelist.o moveorder.o openingbook.o pawnhash.o perft.o pv.o root.o search.o see.o test.o uci.o utils.o write.o
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment