Skip to content

Commit dfa0e96

Browse files
committed
Add PCSC_CPP_WARNING_DISABLE_GCC("-Wstringop-overflow") to CommandApdu case 4 constructor to avoid GCC 15 false positive warning
WE2-940 Signed-off-by: Mart Somermaa <[email protected]>
1 parent 44cfb11 commit dfa0e96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/libpcsc-cpp/include/pcsc-cpp/pcsc-cpp.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,10 @@ struct CommandApdu
172172
byte_vector data, byte_type le) :
173173
CommandApdu {cls, ins, p1, p2, std::move(data)}
174174
{
175+
PCSC_CPP_WARNING_PUSH
176+
PCSC_CPP_WARNING_DISABLE_GCC("-Wstringop-overflow") // avoid GCC 15 false positive warning
175177
d.push_back(le);
178+
PCSC_CPP_WARNING_POP
176179
}
177180

178181
constexpr operator const byte_vector&() const { return d; }

0 commit comments

Comments
 (0)