Skip to content

Please do not use cv qualifiers (const or volatile) in typedefs #8

@jason-sachs

Description

@jason-sachs

from https://github.com/X2Cscope/X2Cscope_library_make/blob/master/interface/X2Cscope.h

typedef const struct compilationDate_type{
	uint8_t date[11];
	uint8_t time[8];
}compilationDate_t;

Could you remove the const? It is up to the application to declare something as const or not.

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