-
Notifications
You must be signed in to change notification settings - Fork 185
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
Reduce number of warnings #179
Changes from all commits
9592b0a
d07d285
308c509
964e4ae
387e5d5
09d12ba
3129b5d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,7 @@ unique_ptr<JpegMarkerSegment> JpegMarkerSegment::CreateJpegFileInterchangeFormat | |
content.push_back(static_cast<uint8_t>(params.Ythumbnail)); | ||
if (params.Xthumbnail > 0) | ||
{ | ||
if (params.thumbnail) | ||
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. This is 3rd party code, so needs separate handling. Is this reversal of logic fixed upstream already perhaps? 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. I am not sure if it's 3rd party code but may be a usage of 3rd party library. I made this change to align logic with the following exception message which is ""params.Xthumbnail is > 0 but params.thumbnail == null_ptr"" 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 definitely is: https://github.com/team-charls/charls |
||
if (!params.thumbnail) | ||
throw CreateSystemError(ApiResult::InvalidJlsParameters, "params.Xthumbnail is > 0 but params.thumbnail == null_ptr"); | ||
|
||
content.insert(content.end(), static_cast<uint8_t*>(params.thumbnail), | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ class CTable | |
|
||
CTable() | ||
{ | ||
::memset(_rgtype, 0, sizeof(_rgtype)); | ||
::memset((void*)_rgtype, 0, sizeof(_rgtype)); | ||
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. Wait, this isn't fixing anything, it's just suppressing the warning... and the warning looks correct to me. |
||
} | ||
|
||
void AddEntry(uint8_t bvalue, Code c) | ||
|
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.
Same comment here. This is suppressing a warning, not fixing anything...