Closed pombredanne closed 6 years ago
It would be worth to eliminate as many warning as possible.
@pombredanne BTW, which version of GCC do you have? My GCC 7.2 doesn't complain about signed/unsigned comparisons.
@pombredanne Sorry, there was no question :) I see GCC is called with different flags on my system (Debian).
I believe most annoying warning were eliminated. We may close this issue with the next release.
$ gcc --version
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
that's the default on Ubuntu 14.04 LTS... I like to avoid being on the leading edge ;)
@WojciechMula Thanks++ With the latest master 3d46569825ba69572b0a499a20c9b62c631dd9cc I only get this now:
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/pombreda/.pyenv/versions/2.7.13/include/python2.7 -c pyahocorasick.c -o build/temp.linux-x86_64-2.7/pyahocorasick.o
In file included from pyahocorasick.c:22:0:
utils.c: In function ‘__read_sequence__from_tuple’:
utils.c:135:4: warning: format ‘%zd’ expects argument of type ‘signed size_t’, but argument 5 has type ‘int’ [-Wformat=]
PyErr_Format(PyExc_ValueError, "item #%zd: value %zd outside range [%zd..%zd]", i, value, 0, 65535);
^
utils.c:135:4: warning: format ‘%zd’ expects argument of type ‘signed size_t’, but argument 6 has type ‘int’ [-Wformat=]
creating build/lib.linux-x86_64-2.7
this is with a python setup.py build
I believe all warnings have gone. :)
A build gives this:
This likely innocuous though