Skip to content

pcsc-cpp: GCC 16 emits -Wstringop-overflow in CommandApdu push_back(le) #142

@Germano0

Description

@Germano0

Workaround
https://github.com/web-eid/libelectronic-id/blob/main/lib/libpcsc-cpp/include/pcsc-cpp/pcsc-cpp.hpp#L159-L161

#if defined(__GNUC__) && __GNUC__ == 15 // Apply workaround for GCC 15
        d.reserve(d.size() + 1);
#endif

does not work with GCC > 15.
Fedora 44 beta and rawhide (45) which ship GCC 16 fail to compile web-eid. See rawhide build log

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