mirror of
https://github.com/aircrack-ng/rtl8188eus.git
synced 2026-01-12 00:51:32 +00:00
Pragma GCC > 10 warning fix
This commit is contained in:
@@ -117,10 +117,13 @@ static __inline__ int __nat25_add_pppoe_tag(struct sk_buff *skb, struct pppoe_ta
|
|||||||
/* have a room for new tag */
|
/* have a room for new tag */
|
||||||
memmove(((unsigned char *)ph->tag + data_len), (unsigned char *)ph->tag, ntohs(ph->length));
|
memmove(((unsigned char *)ph->tag + data_len), (unsigned char *)ph->tag, ntohs(ph->length));
|
||||||
ph->length = htons(ntohs(ph->length) + data_len);
|
ph->length = htons(ntohs(ph->length) + data_len);
|
||||||
#pragma GCC diagnostic ignored "-Wstringop-overread"
|
#if (defined __GNUC__) && (__GNUC__ > 10)
|
||||||
|
#pragma GCC diagnostic ignored "-Wstringop-overread"
|
||||||
|
#endif
|
||||||
memcpy((unsigned char *)ph->tag, tag, data_len);
|
memcpy((unsigned char *)ph->tag, tag, data_len);
|
||||||
#pragma GCC diagnostic pop
|
#if (defined __GNUC__) && (__GNUC__ > 10)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
return data_len;
|
return data_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user