Modern versions of clang through this warning. A full make clean/make is attached.
opendmarc-check.c:95:40: warning: passing 'char [10]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
dmarc = opendmarc_policy_connect_init(LOCALHOST, FALSE);
^~~~~~~~~
opendmarc-check.c:33:19: note: expanded from macro 'LOCALHOST'
#define LOCALHOST "127.0.0.1"
^~~~~~~~~~~
./../libopendmarc/dmarc.h:113:56: note: passing argument to parameter 'ip_addr' here
DMARC_POLICY_T * opendmarc_policy_connect_init(u_char *ip_addr, int ip_type);
^
Modern versions of clang through this warning. A full make clean/make is attached.
opendmarcbuild.txt
One example: