-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GCC: Warnings with syzygy #196
Comments
Which compiler? |
I also get that. Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) |
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) On Sat, Jan 10, 2015 at 7:05 PM, Gary Linscott notifications@github.com
|
I only get that when compiling with debug=yes. |
gcc is known to suffer from false positives in this area... especially with -O3 |
Thanks for the link. Sadly it seems they simply don't care (after a failed On Wed, Jan 14, 2015 at 9:09 AM, Joona Kiiski notifications@github.com
|
Ignore for SF6. syzygy implementation will be worked on during SF7 anyway. |
Good news. They have fixed the bug in the gcc5 branch :) |
Hi all, This just for the record, I have recently installed the latest MinGW and, as reported by Felix on FishCooking also, it seems the issue is not fixed/back again, at least with current Stockfish master, you get the same warning. My version of GCC: Eelco |
Still unfixed gcc bug: |
this issue can now be closed. What about making gcc's -Werror (all warnings are error) part of the makefile now ? |
With Marco's syzygy rewrite and gcc-6.1.0 I no longer get this warning |
Fixed by c0bb0415394179e9c771 |
I get these warnings under MSVC w/ the new C++ syzygy implementation. |
Thanks for reporting. I knew them also by looking at Travis ci output after I don't plan to fix them because they are wrong (gcc and clang don't report If you are able to fix them without using casts then it's ok. On Tuesday, November 8, 2016, mstembera notifications@github.com wrote:
|
I have this warnings when building with gcc
syzygy/tbprobe.cpp: In function ‘int probe_ab(Position&, int, int, int_)’:
syzygy/tbprobe.cpp:204:14: warning: array subscript is above array bounds [-Warray-bounds]
p[i++] = pop_lsb(&bb) ^ mirror;
^
syzygy/tbprobe.cpp:204:14: warning: array subscript is above array bounds [-Warray-bounds]
syzygy/tbprobe.cpp: In function ‘int Tablebases::probe_dtz(Position&, int_)’:
syzygy/tbprobe.cpp:314:14: warning: array subscript is above array bounds [-Warray-bounds]
p[i++] = pop_lsb(&bb) ^ mirror;
^
syzygy/tbprobe.cpp:314:14: warning: array subscript is above array bounds [-Warray-bounds]
The text was updated successfully, but these errors were encountered: