Skip to content

Issue 562: fix clang warnings#563

Merged
jkotan merged 8 commits intomasterfrom
issue_562
Jan 8, 2022
Merged

Issue 562: fix clang warnings#563
jkotan merged 8 commits intomasterfrom
issue_562

Conversation

@jkotan
Copy link
Copy Markdown
Collaborator

@jkotan jkotan commented Jan 7, 2022

It resolves #562 by fixing or ignoring clang warnings in macOS built.

Copy link
Copy Markdown
Collaborator

@yuelongyu yuelongyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are multiple places using

unsigned2signed or signed2unsigned

what's the difference between these methods and static_cast, can they be interchangeable?


private:
datatype::Datatype file_type;
datatype::Datatype file_type_;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why does the variable name has to be changed?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I change the class variable because it is the same as a write method parameter and clang report it as a warning.

@eugenwintersberger
Copy link
Copy Markdown
Collaborator

Looks good to me. Go for the merge.

Copy link
Copy Markdown
Collaborator

@eugenwintersberger eugenwintersberger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Go for the merge.

@jkotan jkotan merged commit e7c06ca into master Jan 8, 2022
@jkotan jkotan deleted the issue_562 branch January 8, 2022 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clang warnings in macOS tests

3 participants