Skip to content

Commit

Permalink
Fix Windows clang build
Browse files Browse the repository at this point in the history
  • Loading branch information
hefroy committed Aug 2, 2023
1 parent 26e0bbd commit 967117e
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace Aws
/**
* Gets the log tag to use for logging in the base class.
*/
const char* GetLogTag() const { return "WinHttpConnectionPoolMgr"; }
const char* GetLogTag() const override { return "WinHttpConnectionPoolMgr"; }

private:
virtual void DoCloseHandle(void* handle) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include <aws/core/Core_EXPORTS.h>

#include <aws/core/utils/memory/stl/AwsStringStream.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <aws/core/auth/AWSAuthSigner.h>
#include <aws/core/http/HttpClient.h>
#include <aws/core/http/standard/StandardHttpResponse.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ namespace Aws
/**
* Initialize with key and initializationVector, set tag for decryption of authenticated modes (move the buffers)
*/
BCryptSymmetricCipher(CryptoBuffer&& key, CryptoBuffer&& initializationVector, CryptoBuffer&& tag = std::move(CryptoBuffer(0)));
BCryptSymmetricCipher(CryptoBuffer&& key, CryptoBuffer&& initializationVector, CryptoBuffer&& tag = CryptoBuffer(0));

BCryptSymmetricCipher(const BCryptSymmetricCipher&) = delete;
BCryptSymmetricCipher& operator=(const BCryptSymmetricCipher&) = delete;
Expand Down
2 changes: 1 addition & 1 deletion src/aws-cpp-sdk-core/include/smithy/tracing/TraceSpan.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace smithy {
/**
* Status of the span.
*/
enum class SMITHY_API TraceSpanStatus {
enum class TraceSpanStatus {
UNSET,
OK,
ERROR,
Expand Down
2 changes: 1 addition & 1 deletion src/aws-cpp-sdk-core/include/smithy/tracing/Tracer.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace smithy {
/**
* The kind of span being created.
*/
enum class SMITHY_API SpanKind {
enum class SpanKind {
INTERNAL,
CLIENT,
SERVER,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <aws/core/http/windows/WinHttpSyncHttpClient.h>

#include <aws/core/Http/HttpRequest.h>
#include <aws/core/http/HttpRequest.h>
#include <aws/core/http/standard/StandardHttpResponse.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/logging/LogMacros.h>
Expand All @@ -28,8 +28,6 @@ using namespace Aws::Http::Standard;
using namespace Aws::Utils;
using namespace Aws::Utils::Logging;

static const uint32_t HTTP_REQUEST_WRITE_BUFFER_LENGTH = 8192;

static void WinHttpEnableHttp2(void* handle)
{
#ifdef WINHTTP_HAS_H2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <aws/core/http/windows/WinINetSyncHttpClient.h>

#include <aws/core/Http/HttpRequest.h>
#include <aws/core/http/HttpRequest.h>
#include <aws/core/http/standard/StandardHttpResponse.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/logging/LogMacros.h>
Expand All @@ -27,8 +27,6 @@ using namespace Aws::Http::Standard;
using namespace Aws::Utils;
using namespace Aws::Utils::Logging;

static const uint32_t HTTP_REQUEST_WRITE_BUFFER_LENGTH = 8192;

static void WinINetEnableHttp2(void* handle)
{
#ifdef WININET_HAS_H2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

#include <aws/core/http/windows/WinSyncHttpClient.h>
#include <aws/core/Http/HttpRequest.h>
#include <aws/core/http/HttpRequest.h>
#include <aws/core/http/standard/StandardHttpResponse.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/HashingUtils.h>
Expand All @@ -27,7 +27,6 @@ using namespace Aws::Utils;
using namespace Aws::Utils::Logging;

static const uint32_t HTTP_REQUEST_WRITE_BUFFER_LENGTH = 8192;
static const char CLASS_TAG[] = "WinSyncHttpClient";

WinSyncHttpClient::~WinSyncHttpClient()
{
Expand Down Expand Up @@ -349,7 +348,7 @@ std::shared_ptr<HttpResponse> WinSyncHttpClient::MakeRequest(const std::shared_p
}
}

if (!success && !IsRequestProcessingEnabled() || !ContinueRequest(*request))
if ((!success && !IsRequestProcessingEnabled()) || !ContinueRequest(*request))
{
response->SetClientErrorType(CoreErrors::USER_CANCELLED);
response->SetClientErrorMessage("Request processing disabled or continuation cancelled by user's continuation handler.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,6 @@ namespace Aws
{
return CryptoBuffer();
}
size_t bytesWritten = 0;
Aws::Vector<ByteBuffer*> finalBufferSet(0);

CryptoBuffer bufferToEncrypt;
Expand Down Expand Up @@ -984,7 +983,6 @@ namespace Aws
*newBuffer = slicedBuffers[i] ^ encryptedText;
finalBufferSet[i] = newBuffer;
m_workingIv = IncrementCTRCounter(m_workingIv, 1);
bytesWritten += static_cast<size_t>(lengthWritten);
}
else
{
Expand Down

0 comments on commit 967117e

Please sign in to comment.