[pcapplusplus] Suppress warning STL4043 as workaround (#40643)

This commit is contained in:
WangWeiLin-MV 2024-08-27 16:29:57 +08:00 committed by GitHub
parent a3a948142b
commit a6212db191
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 21 additions and 2 deletions

View File

@ -0,0 +1,12 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0f24d43..858424c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -219,6 +219,7 @@ if(PCAPPP_TARGET_COMPILER_MSVC)
# Disable VS warnings: Unknown pragma (4068), Zero-sized array in struct/union (4200), Possible loss of data (4244),
# Possible loss of data (4267), Character may not be represented (4819)
add_definitions("/wd4068 /wd4200 /wd4244 /wd4267 /wd4819")
+ add_compile_definitions(_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING)
endif()
if(PCAPPP_BUILD_COVERAGE)

View File

@ -11,6 +11,8 @@ vcpkg_from_github(
REF "v${PCAPPLUSPLUS_VERSION}" REF "v${PCAPPLUSPLUS_VERSION}"
SHA512 e7dc1dbd85c9f0d2f9c5d3e436456c2cd183fb508c869fa8fb83f46aac99b868a16283204e5d57a0bfd7587f6ac2582b3e14c6098683fad4501708c8fededd6a SHA512 e7dc1dbd85c9f0d2f9c5d3e436456c2cd183fb508c869fa8fb83f46aac99b868a16283204e5d57a0bfd7587f6ac2582b3e14c6098683fad4501708c8fededd6a
HEAD_REF master HEAD_REF master
PATCHES
0001-warn-STL4043-for-v23.09.patch # just workaround, which has been fixed on mainline
) )
vcpkg_cmake_configure( vcpkg_cmake_configure(

View File

@ -1,7 +1,7 @@
{ {
"name": "pcapplusplus", "name": "pcapplusplus",
"version": "23.9", "version": "23.9",
"port-version": 1, "port-version": 2,
"description": "PcapPlusPlus is a multi-platform C++ library for capturing, parsing and crafting of network packets", "description": "PcapPlusPlus is a multi-platform C++ library for capturing, parsing and crafting of network packets",
"homepage": "https://github.com/seladb/PcapPlusPlus", "homepage": "https://github.com/seladb/PcapPlusPlus",
"license": null, "license": null,

View File

@ -6810,7 +6810,7 @@
}, },
"pcapplusplus": { "pcapplusplus": {
"baseline": "23.9", "baseline": "23.9",
"port-version": 1 "port-version": 2
}, },
"pcg": { "pcg": {
"baseline": "2021-04-06", "baseline": "2021-04-06",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "5f7f815b341f0f5a5d1456894d8b30786ae24abf",
"version": "23.9",
"port-version": 2
},
{ {
"git-tree": "51f8425ebc003224002c45c5f7454ebf2fb79a82", "git-tree": "51f8425ebc003224002c45c5f7454ebf2fb79a82",
"version": "23.9", "version": "23.9",