Skip to content

Commit 977d107

Browse files
Build fixes for gcc and clang.
1 parent 9cb2f16 commit 977d107

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/aws/crt/StlAllocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace Aws
3838

3939
~StlAllocator() {}
4040

41-
using sizeType = std::size_t;
41+
using size_type = std::size_t;
4242

4343
template<typename U>
4444
struct rebind

samples/mqtt_pub_sub/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ int main(int argc, char* argv[])
200200
{
201201
{
202202
fprintf(stdout, "Connection completed with return code %d\n", returnCode);
203-
fprintf(stdout, "Conneciton state %d\n", connection->GetConnectionState());
203+
fprintf(stdout, "Conneciton state %d\n", static_cast<int>(connection->GetConnectionState()));
204204
std::lock_guard<std::mutex> lockGuard(mutex);
205205
connectionSucceeded = true;
206206
}
@@ -227,7 +227,7 @@ int main(int argc, char* argv[])
227227
{
228228
{
229229
fprintf(stdout, "Connection closed with error %s\n", ErrorDebugString(error));
230-
fprintf(stdout, "Conneciton state %d\n", conn.GetConnectionState());
230+
fprintf(stdout, "Conneciton state %d\n", static_cast<int>(conn.GetConnectionState()));
231231
std::lock_guard<std::mutex> lockGuard(mutex);
232232
connectionClosed = true;
233233
}

0 commit comments

Comments
 (0)