Skip to content

Error compiling with modern gcc #1

@make-all

Description

@make-all

Due to improvements in preventing unsafe memory access in gcc 8, the following code now gives a warning, which due to the compile options used is translated to an error and halts compilation.

memset(&sig, 0, sizeof(ECCSignature));

build/linux/arm/debug/dist/cpp/inc/qcc/KeyInfoECC.h:140:45: error: 'void* memset(void*, int, size_t)' clearing an object of type 'struct qcc::ECCSignature' with no trivial copy-assignment; use assignment or value-initialization instead [-Werror=class-memaccess]

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