[aws-sdk-cpp] no werror et al (#29133)

This commit is contained in:
autoantwort 2023-01-24 00:49:46 +01:00 committed by GitHub
parent 60995024e8
commit 77a36d89a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 33 additions and 2 deletions

View File

@ -0,0 +1,25 @@
diff --git a/cmake/compiler_settings.cmake b/cmake/compiler_settings.cmake
index b316590ee..f17c27184 100644
--- a/cmake/compiler_settings.cmake
+++ b/cmake/compiler_settings.cmake
@@ -53,7 +53,7 @@ macro(set_gcc_flags)
endmacro()
macro(set_gcc_warnings)
- list(APPEND AWS_COMPILER_WARNINGS "-Wno-deprecated-declarations" "-Wall" "-Werror" "-pedantic" "-Wextra")
+ list(APPEND AWS_COMPILER_WARNINGS "-Wno-deprecated-declarations" "-Wall" "-pedantic" "-Wextra")
if(COMPILER_CLANG)
if(PLATFORM_ANDROID)
# when using clang with libc and API lower than 21 we need to include Android support headers and ignore the gnu-include-next warning.
@@ -148,11 +148,6 @@ macro(set_msvc_warnings)
set(CMAKE_SHARED_LINKER_FLAGS_DEBUGOPT "")
endif()
- # warnings as errors, max warning level (4)
- if(NOT CMAKE_CXX_FLAGS MATCHES "/WX")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
- endif()
-
# taken from http://stackoverflow.com/questions/2368811/how-to-set-warning-level-in-cmake
if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]")
string(REGEX REPLACE "/W[0-4]" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")

View File

@ -10,6 +10,7 @@ vcpkg_from_github(
fix-aws-root.patch
fix-openssl3.patch
lock-curl-http-and-tls-settings.patch
no-werror.patch
)
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "dynamic" FORCE_SHARED_CRT)

View File

@ -2,7 +2,7 @@
"$note": "Automatically generated by generateFeatures.ps1",
"name": "aws-sdk-cpp",
"version": "1.9.220",
"port-version": 2,
"port-version": 3,
"description": "AWS SDK for C++",
"homepage": "https://github.com/aws/aws-sdk-cpp",
"supports": "!(windows & arm) & !uwp",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "53396d33cc22ee631dbfbb9b9a3a656ee3f4ea38",
"version": "1.9.220",
"port-version": 3
},
{
"git-tree": "8303c2804c010e352168fda9a38e7256c30d170d",
"version": "1.9.220",

View File

@ -346,7 +346,7 @@
},
"aws-sdk-cpp": {
"baseline": "1.9.220",
"port-version": 2
"port-version": 3
},
"azmq": {
"baseline": "1.0.3",