Skip to content

Many occurences of -Wpointer-sign warning with clang under FreeBSD #108

@thegushi

Description

@thegushi

Modern versions of clang through this warning. A full make clean/make is attached.

opendmarcbuild.txt

One example:

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);
                                                       ^

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions