sshivaji / pgnextractor

GNU General Public License v3.0
1 stars 1 forks source link

Compile warnings #1

Closed gbtami closed 7 years ago

gbtami commented 7 years ago
make ARCH=x86-64-modern COMP=gcc all
make[1]: Entering directory '/home/tamas/pychess/pgnextractor/parser'
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto   -c -o bitboard.o bitboard.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto   -c -o book.o book.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto   -c -o main.o main.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto   -c -o misc.o misc.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto   -c -o parser.o parser.cpp
parser.cpp: In instantiation of ‘const char* {anonymous}::parse_game(const char*, const char*, {anonymous}::Keys&, const char*, const char*, size_t&, uint64_t, int) [with bool DryRun = true; {anonymous}::Keys = std::vector<PolyEntry>; size_t = long unsigned int; uint64_t = long unsigned int]’:
parser.cpp:395:79:   required from here
parser.cpp:163:66: warning: unused parameter ‘kTable’ [-Wunused-parameter]
 const char* parse_game(const char* moves, const char* end, Keys& kTable,
                                                                  ^
parser.cpp:165:33: warning: unused parameter ‘gameOfs’ [-Wunused-parameter]
                        uint64_t gameOfs, int result) {
                                 ^
parser.cpp:165:46: warning: unused parameter ‘result’ [-Wunused-parameter]
                        uint64_t gameOfs, int result) {
                                              ^
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto   -c -o position.o position.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto   -c -o uci.o uci.cpp
g++ -o pgnextractor bitboard.o book.o main.o misc.o parser.o position.o uci.o  -Wl,--no-as-needed -lpthread -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto
make[1]: Leaving directory '/home/tamas/pychess/pgnextractor/parser'
sshivaji commented 7 years ago

Now fixed and offset_8 added. Its also faster now!

gbtami commented 7 years ago

It still produces some warnings for me:

make[1]: Entering directory '/home/tamas/pychess/pgnextractor/parser'
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto   -c -o bitboard.o bitboard.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto   -c -o book.o book.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto   -c -o main.o main.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto   -c -o misc.o misc.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto   -c -o parser.o parser.cpp
parser.cpp: In function ‘void {anonymous}::parse_pgn(void*, uint64_t, {anonymous}::Stats&, {anonymous}::Keys&, std::ofstream&)’:
parser.cpp:245:9: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
     int result = 3;
         ^
parser.cpp: At global scope:
parser.cpp:236:70: warning: unused parameter ‘kTable’ [-Wunused-parameter]
 void parse_pgn(void* baseAddress, uint64_t size, Stats& stats, Keys& kTable, std::ofstream& headerFile) {
                                                                      ^
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto   -c -o position.o position.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto   -c -o uci.o uci.cpp
g++ -o pgnextractor bitboard.o book.o main.o misc.o parser.o position.o uci.o  -Wl,--no-as-needed -lpthread -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto
make[1]: Leaving directory '/home/tamas/pychess/pgnextractor/parser'
sshivaji commented 7 years ago

Will fix, odd. Thx for reporting.

On Mon, Jan 9, 2017 at 12:51 PM, Bajusz Tamás notifications@github.com wrote:

It still produces some warnings for me:

make[1]: Entering directory '/home/tamas/pychess/pgnextractor/parser' g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11 -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto -c -o bitboard.o bitboard.cpp g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11 -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto -c -o book.o book.cpp g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11 -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto -c -o main.o main.cpp g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11 -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto -c -o misc.o misc.cpp g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11 -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto -c -o parser.o parser.cpp parser.cpp: In function ‘void {anonymous}::parse_pgn(void, uint64_t, {anonymous}::Stats&, {anonymous}::Keys&, std::ofstream&)’: parser.cpp:245:9: warning: variable ‘result’ set but not used [-Wunused-but-set-variable] int result = 3; ^ parser.cpp: At global scope: parser.cpp:236:70: warning: unused parameter ‘kTable’ [-Wunused-parameter] void parse_pgn(void baseAddress, uint64_t size, Stats& stats, Keys& kTable, std::ofstream& headerFile) { ^ g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11 -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto -c -o position.o position.cpp g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11 -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto -c -o uci.o uci.cpp g++ -o pgnextractor bitboard.o book.o main.o misc.o parser.o position.o uci.o -Wl,--no-as-needed -lpthread -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11 -pedantic -Wextra -Wshadow -m64 -DNDEBUG -O3 -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -flto make[1]: Leaving directory '/home/tamas/pychess/pgnextractor/parser'

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/sshivaji/pgnextractor/issues/1#issuecomment-271403791, or mute the thread https://github.com/notifications/unsubscribe-auth/ABXUGnKhuneodf-XPnD6KDUPKv1DRBkoks5rQp3TgaJpZM4LeJZD .

gbtami commented 7 years ago

No warnings now. Thx!