-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix warnings #2944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
fix warnings #2944
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,6 +126,70 @@ namespace Aws | |
case HttpResponseCode::NETWORK_READ_TIMEOUT: | ||
case HttpResponseCode::NETWORK_CONNECT_TIMEOUT: | ||
return true; | ||
case HttpResponseCode::REQUEST_NOT_MADE: | ||
jmklix marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what is the actual warning? id rather not list all enum values if possible There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like this:
|
||
case HttpResponseCode::CONTINUE: | ||
case HttpResponseCode::SWITCHING_PROTOCOLS: | ||
case HttpResponseCode::PROCESSING: | ||
case HttpResponseCode::OK: | ||
case HttpResponseCode::CREATED: | ||
case HttpResponseCode::ACCEPTED: | ||
case HttpResponseCode::NON_AUTHORITATIVE_INFORMATION: | ||
case HttpResponseCode::NO_CONTENT: | ||
case HttpResponseCode::RESET_CONTENT: | ||
case HttpResponseCode::PARTIAL_CONTENT: | ||
case HttpResponseCode::MULTI_STATUS: | ||
case HttpResponseCode::ALREADY_REPORTED: | ||
case HttpResponseCode::IM_USED: | ||
case HttpResponseCode::MULTIPLE_CHOICES: | ||
case HttpResponseCode::MOVED_PERMANENTLY: | ||
case HttpResponseCode::FOUND: | ||
case HttpResponseCode::SEE_OTHER: | ||
case HttpResponseCode::NOT_MODIFIED: | ||
case HttpResponseCode::USE_PROXY: | ||
case HttpResponseCode::SWITCH_PROXY: | ||
case HttpResponseCode::TEMPORARY_REDIRECT: | ||
case HttpResponseCode::PERMANENT_REDIRECT: | ||
case HttpResponseCode::BAD_REQUEST: | ||
case HttpResponseCode::UNAUTHORIZED: | ||
case HttpResponseCode::PAYMENT_REQUIRED: | ||
case HttpResponseCode::FORBIDDEN: | ||
case HttpResponseCode::NOT_FOUND: | ||
case HttpResponseCode::METHOD_NOT_ALLOWED: | ||
case HttpResponseCode::NOT_ACCEPTABLE: | ||
case HttpResponseCode::PROXY_AUTHENTICATION_REQUIRED: | ||
case HttpResponseCode::CONFLICT: | ||
case HttpResponseCode::GONE: | ||
case HttpResponseCode::LENGTH_REQUIRED: | ||
case HttpResponseCode::PRECONDITION_FAILED: | ||
case HttpResponseCode::REQUEST_ENTITY_TOO_LARGE: | ||
case HttpResponseCode::REQUEST_URI_TOO_LONG: | ||
case HttpResponseCode::UNSUPPORTED_MEDIA_TYPE: | ||
case HttpResponseCode::REQUESTED_RANGE_NOT_SATISFIABLE: | ||
case HttpResponseCode::EXPECTATION_FAILED: | ||
case HttpResponseCode::IM_A_TEAPOT: | ||
case HttpResponseCode::METHOD_FAILURE: | ||
case HttpResponseCode::UNPROC_ENTITY: | ||
case HttpResponseCode::LOCKED: | ||
case HttpResponseCode::FAILED_DEPENDENCY: | ||
case HttpResponseCode::UPGRADE_REQUIRED: | ||
case HttpResponseCode::PRECONDITION_REQUIRED: | ||
case HttpResponseCode::REQUEST_HEADER_FIELDS_TOO_LARGE: | ||
case HttpResponseCode::NO_RESPONSE: | ||
case HttpResponseCode::RETRY_WITH: | ||
case HttpResponseCode::BLOCKED: | ||
case HttpResponseCode::REDIRECT: | ||
case HttpResponseCode::REQUEST_HEADER_TOO_LARGE: | ||
case HttpResponseCode::CERT_ERROR: | ||
case HttpResponseCode::NO_CERT: | ||
case HttpResponseCode::HTTP_TO_HTTPS: | ||
case HttpResponseCode::CLIENT_CLOSED_TO_REQUEST: | ||
case HttpResponseCode::NOT_IMPLEMENTED: | ||
case HttpResponseCode::HTTP_VERSION_NOT_SUPPORTED: | ||
case HttpResponseCode::VARIANT_ALSO_NEGOTIATES: | ||
case HttpResponseCode::INSUFFICIENT_STORAGE: | ||
case HttpResponseCode::LOOP_DETECTED: | ||
case HttpResponseCode::NOT_EXTENDED: | ||
case HttpResponseCode::NETWORK_AUTHENTICATION_REQUIRED: | ||
default: | ||
return false; | ||
} | ||
|
@@ -203,7 +267,7 @@ namespace Aws | |
* It isn't pure virtual for backwards compatiblity reasons, but the StandardHttpResponse used by default in the SDK | ||
* implements the move. | ||
*/ | ||
virtual void AddHeader(const Aws::String& headerName, Aws::String&& headerValue) { AddHeader(headerName, headerValue); }; | ||
virtual void AddHeader(const Aws::String& headerName, Aws::String&& headerValue) { AddHeader(headerName, headerValue); } | ||
/** | ||
* Sets the content type header on the http response object. | ||
*/ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: space before braces. do we actually need braces in this case at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, there currently is no consistency with having or not having the empty {}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should I remove all of them