Skip to content

Commit 499e407

Browse files
committed
aws-sdk-cpp: support clang >= 13 with 1.9.100
Add patch for aws/aws-sdk-cpp#1816
1 parent 7d0b773 commit 499e407

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

recipes/aws-sdk-cpp/all/conandata.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ patches:
2121
patch_file: patches/1.9.100-0001-disable-sort-links.patch
2222
- base_path: source_subfolder
2323
patch_file: patches/1.9.100-0002-aws-plugin-conf.patch
24+
- base_path: source_subfolder
25+
patch_file: patches/1.9.100-0003-issue-1816.patch
2426
"1.8.130":
2527
- base_path: source_subfolder
2628
patch_file: patches/1.8.130-0001-disable-sort-links.patch
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
diff --git aws-cpp-sdk-text-to-speech/source/text-to-speech/TextToSpeechManager.cpp aws-cpp-sdk-text-to-speech/source/text-to-speech/TextToSpeechManager.cpp
2+
index c633f3fabe..abb1ab7332 100644
3+
--- aws-cpp-sdk-text-to-speech/source/text-to-speech/TextToSpeechManager.cpp
4+
+++ aws-cpp-sdk-text-to-speech/source/text-to-speech/TextToSpeechManager.cpp
5+
@@ -146,7 +146,6 @@ namespace Aws
6+
AWS_LOGSTREAM_TRACE(CLASS_TAG, "Audio retrieved from Polly. " << result.GetContentType() << " with "
7+
<< result.GetRequestCharacters() << " characters syntesized");
8+
9+
- std::streamsize amountRead(0);
10+
unsigned char buffer[BUFF_SIZE];
11+
12+
std::lock_guard<std::mutex> m(m_driverLock);
13+
@@ -159,7 +158,6 @@ namespace Aws
14+
AWS_LOGSTREAM_TRACE(CLASS_TAG, "Writing " << read << " bytes to device.");
15+
16+
successfullyPlayed = m_activeDriver->WriteBufferToDevice(buffer, (std::size_t)read);
17+
- amountRead += read;
18+
played = successfullyPlayed;
19+
}
20+

0 commit comments

Comments
 (0)