Skip to content

v1.1.6 many "ISO C does not allow" warnings during compilation #67

@Corin-EU

Description

@Corin-EU

When building libinstpatch v1.1.6 with gcc (SUSE Linux) 7.5.0 (no custom CFLAGS used) I see lots of warning messages.

 warning: ISO C does not allow extra ‘;’ outside of a function [-Wpedantic]

 warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]

 warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]

 warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic]

Now I know that warnings are warnings and not errors, but this one in particular because it mentions "overflow", and overflows lead to undefined behavior, should at least be considered for attenton.

 warning: overflow in implicit constant conversion [-Woverflow]
 #define UMAX 65535

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions