[PATCH] db_unixodbc: fix incompatible-pointer-types warning
authorVictor Seva <linuxmaniac@torreviejawireless.org>
Tue, 10 Dec 2024 23:09:02 +0000 (00:09 +0100)
committerVictor Seva <vseva@debian.org>
Tue, 28 Jan 2025 13:06:51 +0000 (14:06 +0100)
commita83d9b66d7d976d4943919f8faeabcbdf3f12368
tree8a68c7a3f5feeb586f0746d5f08a90ee1f7a5a9d
parent2bee35d84831e938e07af90df5481af65a3f7f01
[PATCH] db_unixodbc: fix incompatible-pointer-types warning

> dbase.c: In function 'db_unixodbc_close_impl':
> dbase.c:261:32: error: passing argument 2 of 'db_do_close' from incompatible pointer type [-Wincompatible-pointer-types]
>  261 |         return db_do_close(_h, db_unixodbc_free_connection);
>      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>      |                                |
>      |                                void (*)(struct my_con *)
> In file included from val.h:34,
>                  from dbase.c:33:
> ../../lib/srdb1/db.h:495:40: note: expected 'void (*)(struct pool_con *)' but argument is of type 'void (*)(struct my_con *)'
>   495 | void db_do_close(db1_con_t *_h, void (*free_connection)(struct pool_con *));
>       |                                 ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> make[2]: *** [../../Makefile.rules:101: dbase.o] Error 1

related #4064

(cherry picked from commit 7f24bc09863220b4c14e2046708c10ff0891c038)

Gbp-Pq: Topic upstream
Gbp-Pq: Name 0002-db_unixodbc-fix-incompatible-pointer-types-warning.patch
src/modules/db_unixodbc/connection.c
src/modules/db_unixodbc/connection.h