Skip to content
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

Remove designated initialization of an array #542

Merged
merged 1 commit into from
Oct 19, 2022

Conversation

invertego
Copy link
Collaborator

C supports designated initialization of arrays, but C++ does not. The one usage of it does not serve a functional purpose and so can be removed. This code was triggering warnings under clang and errors under MSVC.

C supports designated initialization of arrays, but C++ does not. The one
usage of it does not serve a functional purpose and so can be removed.
This code was triggering warnings under clang and errors under MSVC.
Copy link
Collaborator

@Cuda-Chen Cuda-Chen left a comment

Choose a reason for hiding this comment

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

Code LGTM.
By the way, a separated PR about testing on MSVC is required for proving this change compiles without any errors/warnings.

@invertego
Copy link
Collaborator Author

There are numerous other changes required for a clean MSVC build. This PR is specifically addressing warnings with clang.

@Cuda-Chen
Copy link
Collaborator

This PR is specifically addressing warnings with clang.

Got it. Then I consider this change is acceptable.

@jserv jserv merged commit adefad2 into DLTcollab:master Oct 19, 2022
@jserv
Copy link
Member

jserv commented Oct 19, 2022

Thank @invertego for contributing!

@invertego invertego deleted the array_designator branch October 19, 2022 05:20
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.

None yet

3 participants