]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix(c): fix the goto label in the HAVE_POLL branch of wait_c_impl()
authorDenis Laxalde <denis.laxalde@dalibo.com>
Tue, 16 Apr 2024 14:21:16 +0000 (16:21 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 16 Apr 2024 18:12:49 +0000 (20:12 +0200)
commitb6606faa73143025ddc16e5ad02020011bde53ef
tree70b9076f3875866dc9be6e6af2617e9d0bc500bd
parentae0a8bd351a53d5e5934e65a9c073c4ddc033cf9
fix(c): fix the goto label in the HAVE_POLL branch of wait_c_impl()

This resolves the following warning when building the extension module:

    $ python psycopg_c/setup.py build_ext -i
    [...]
    building 'psycopg_c._psycopg' extension
    x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/denis/.local/pgsql/include -I/home/denis/src/psycopg3/.venv/include -I/usr/include/python3.11 -c psycopg_c/_psycopg.c -o build/temp.linux-x86_64-cpython-311/psycopg_c/_psycopg.o
    psycopg_c/_psycopg.c: In function ‘wait_c_impl’:
    psycopg_c/_psycopg.c:1649:1: warning: label ‘error’ defined but not used [-Wunused-label]
     1649 |
          | ^
psycopg_c/psycopg_c/_psycopg/waiting.pyx