Skip to content

error: conflicting types for 'sac_keyword_to_header' #11

@florentdemartin

Description

@florentdemartin

Using Cmake External Project to compile sacio, I end up with the following conflicting types error:

sacio.h : struct hid * sac_keyword_to_header(register const char *str, register unsigned int len);
header_map.c : struct hid * sac_keyword_to_header (register const char *str, register size_t len)

It seems to come from Makefile lines:
header_map.c: header_map.txt
gperf $< > $@
enums.c: enums.txt
gperf $< > $@

The error is not present if Cmake is not used, so it might be a Cmake issue rather than sacio issue. But any tips are welcome :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions