Compilation with clang-9 fails
Compilation with CC=clang-9
fails with the following errors in libbalsa/imap
(same effect on macOS 10.15, which also uses clang):
CC imap-handle.o
imap-handle.c:72:22: error: redefinition of typedef 'ImapMboxHandle' is a C11 feature [-Werror,-Wtypedef-redefinition]
G_DECLARE_FINAL_TYPE(ImapMboxHandle,
^
./libimap.h:231:37: note: previous definition is here
typedef struct _ImapMboxHandle ImapMboxHandle;
^
imap-handle.c:706:12: error: implicit conversion from enumeration type 'ImapResult' to different enumeration type 'ImapResponse' [-Werror,-Wenum-conversion]
resp = IMAP_SUCCESS; /* secured already with SSL, or no encryption requested */
~ ^~~~~~~~~~~~
imap-handle.c:710:14: error: implicit conversion from enumeration type 'ImapResult' to different enumeration type 'ImapResponse' [-Werror,-Wenum-conversion]
resp = IMAP_UNSECURE; /* TLS negotiation error */
~ ^~~~~~~~~~~~~
imap-handle.c:712:14: error: implicit conversion from enumeration type 'ImapResult' to different enumeration type 'ImapResponse' [-Werror,-Wenum-conversion]
resp = IMAP_SUCCESS; /* secured with TLS */
~ ^~~~~~~~~~~~
imap-handle.c:719:10: error: implicit conversion from enumeration type 'ImapResponse' to different enumeration type 'ImapResult' [-Werror,-Wenum-conversion]
return resp;
~~~~~~ ^~~~
5 errors generated.
As this is @pawels code (I think?), I'm hesitant to touch this myself…