otrv4 / pidgin-otrng

Fork of https://bugs.otr.im/plugins/pidgin-otr. This is a mirror of https://bugs.otr.im/otrv4/pidgin-otrng
GNU General Public License v2.0
16 stars 5 forks source link

Fix some warnings #73

Closed claucece closed 5 years ago

claucece commented 5 years ago

Reported in clang:

plugin-all.c:235:31: warning: incompatible pointer types passing 'otrng_client_id_s (FILE )' (aka 'struct otrng_client_id_s (struct __sFILE )') to parameter of type 'const otrng_client_id_s ()(FILE )' (aka 'const struct otrng_client_id_s ()(struct __sFILE )') [-Wincompatible-pointer-types] otrng_state, priv4, protocol_and_account_to_purple_conversation))) { ^~~~~~~~~~~ /usr/local/include/libotr-ng/messaging.h:123:31: note: passing argument to parameter 'read_client_id_for_key' here const otrng_client_id_s (read_client_id_for_key)(FILE filep)); ^ plugin-all.c:246:27: warning: incompatible pointer types passing 'otrng_client_id_s (FILE )' (aka 'struct otrng_client_id_s (struct __sFILE )') to parameter of type 'const otrng_client_id_s ()(FILE )' (aka 'const struct otrng_client_id_s ()(struct __sFILE )') [-Wincompatible-pointer-types] otrng_state, f, protocol_and_account_to_purple_conversation))) { ^~~~~~~~~~~ /usr/local/include/libotr-ng/messaging.h:127:31: note: passing argument to parameter 'read_client_id_for_key' here const otrng_client_id_s (read_client_id_for_key)(FILE f)); ^ plugin-all.c:263:11: warning: incompatible pointer types passing 'otrng_client_id_s (FILE )' (aka 'struct otrng_client_id_s (struct __sFILE )') to parameter of type 'const otrng_client_id_s ()(FILE )' (aka 'const struct otrng_client_id_s ()(struct __sFILE )') [-Wincompatible-pointer-types] protocol_and_account_to_purple_conversation))) { ^~~~~~~~~~~ /usr/local/include/libotr-ng/messaging.h:87:31: note: passing argument to parameter 'read_client_id_for_key' here const otrng_client_id_s (read_client_id_for_key)(FILE filep)); ^ plugin-all.c:272:11: warning: incompatible pointer types passing 'otrng_client_id_s (FILE )' (aka 'struct otrng_client_id_s (struct __sFILE )') to parameter of type 'const otrng_client_id_s ()(FILE )' (aka 'const struct otrng_client_id_s ()(struct __sFILE )') [-Wincompatible-pointer-types] protocol_and_account_to_purple_conversation))) { ^~~~~~~~~~~ /usr/local/include/libotr-ng/messaging.h:91:31: note: passing argument to parameter 'read_client_id_for_key' here const otrng_client_id_s (read_client_id_for_key)(FILE filep)); ^ plugin-all.c:281:11: warning: incompatible pointer types passing 'otrng_client_id_s (FILE )' (aka 'struct otrng_client_id_s (struct __sFILE )') to parameter of type 'const otrng_client_id_s ()(FILE )' (aka 'const struct otrng_client_id_s ()(struct __sFILE )') [-Wincompatible-pointer-types] protocol_and_account_to_purple_conversation))) { ^~~~~~~~~~~ /usr/local/include/libotr-ng/messaging.h:95:31: note: passing argument to parameter 'read_client_id_for_key' here const otrng_client_id_s (read_client_id_for_key)(FILE filep)); ^ plugin-all.c:290:11: warning: incompatible pointer types passing 'otrng_client_id_s (FILE )' (aka 'struct otrng_client_id_s (struct __sFILE )') to parameter of type 'const otrng_client_id_s ()(FILE )' (aka 'const struct otrng_client_id_s ()(struct __sFILE )') [-Wincompatible-pointer-types] protocol_and_account_to_purple_conversation))) { ^~~~~~~~~~~ /usr/local/include/libotr-ng/messaging.h:131:31: note: passing argument to parameter 'read_client_id_for_prekey' here const otrng_client_id_s (read_client_id_for_prekey)(FILE filep));

claucece commented 5 years ago

I've haven't seen this for a while. Closing it.