Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <aws/event-stream/event_stream.h>
#include <cassert>

#ifdef __MINGW32__
#if defined(__MINGW32__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#pragma GCC diagnostic ignored "-Wuninitialized"
Expand Down Expand Up @@ -357,6 +357,6 @@ namespace Aws
}
}

#ifdef __MINGW32__
#if defined(__MINGW32__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ static void CALLBACK WinHttpSyncLogCallback(HINTERNET hInternet,
};

bool found = false;
int i;
size_t i;
for (i = 0; i < sizeof(KNOWN_STATUSES) / sizeof(KNOWN_STATUSES[0]) && !found; i++)
{
if (dwInternetStatus == KNOWN_STATUSES[i].status)
Expand Down Expand Up @@ -402,8 +402,8 @@ WinHttpSyncHttpClient::WinHttpSyncHttpClient(const ClientConfiguration& config)
Base(),
m_usingProxy(!config.proxyHost.empty()),
m_verifySSL(config.verifySSL),
m_version(config.version),
m_useAnonymousAuth(config.winHTTPOptions.useAnonymousAuth)
m_useAnonymousAuth(config.winHTTPOptions.useAnonymousAuth),
m_version(config.version)
{
m_enableHttpClientTrace = config.enableHttpClientTrace;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ Aws::String ComputeOSVersionString()
static const char* FILE_TO_CHECK = "Kernel32.dll";
DWORD fileVersionSize = GetFileVersionInfoSizeA(FILE_TO_CHECK, &uselessParameter);
void* blob = Aws::Malloc("OSVersionInfo", static_cast<size_t>(fileVersionSize));
bool versionFound(false);

if (GetFileVersionInfoA(FILE_TO_CHECK, 0, fileVersionSize, blob))
{
Expand All @@ -95,7 +94,6 @@ Aws::String ComputeOSVersionString()
if (VerQueryValueA(blob, codePageSS.str().c_str(), &subBlock, &subBlockSize))
{
ss << "#" << static_cast<const char*>(subBlock);
versionFound = true;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <aws/core/platform/Environment.h>
#include <aws/core/platform/FileSystem.h>

#if defined(_WIN32)
#if defined(_WIN32) && !defined(__clang__)
// disable "warning C4702: unreachable code" from GTEST_SKIP on newer MSVS
#pragma warning(disable: 4702)
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include <aws/core/Aws.h>

#if defined(_WIN32)
#if defined(_WIN32) && !defined(__clang__)
// disable "warning C4702: unreachable code" from GTEST_SKIP on newer MSVS
#pragma warning(disable: 4702)
#endif
Expand Down
Loading