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

ENH: Fix compile warnings in FilterUtilities. Init array in DataStore when resizing #1026

Merged

Conversation

imikejackson
Copy link
Contributor

FilterUtilities had a function without a return statement

  • DataStore did not attempt to initialize the array with any value. This leads to difficulty debugging when the values are random or happening randomly (if the re-allocation happens to be in the same place as a once-valid array.

This change attempts to allow for the initialization value to be used. In case no initialization value is passed into the constructor then a default 0xABAB byte pattern is used instead.

src/simplnx/Utilities/FilterUtilities.hpp Outdated Show resolved Hide resolved
src/simplnx/DataStructure/DataStore.hpp Outdated Show resolved Hide resolved
@imikejackson imikejackson requested a review from JDuffeyBQ July 29, 2024 16:02
@imikejackson
Copy link
Contributor Author

Requires #1028

@JDuffeyBQ JDuffeyBQ force-pushed the topic/misc_updates branch from 8362f86 to 6f9044a Compare July 29, 2024 19:56
@imikejackson imikejackson force-pushed the topic/misc_updates branch 3 times, most recently from 7ba3801 to b4402d3 Compare August 1, 2024 19:56
imikejackson and others added 9 commits August 2, 2024 09:48
Signed-off-by: Michael Jackson <[email protected]>
Signed-off-by: Michael Jackson <[email protected]>
Signed-off-by: Jared Duffey <[email protected]>
Signed-off-by: Jared Duffey <[email protected]>
#include <bit> with bit_cast<> was not instroduced until Xcode 14.3 which requires
macOS 13.x (Ventura)

Signed-off-by: Michael Jackson <[email protected]>
@imikejackson imikejackson merged commit d534b18 into BlueQuartzSoftware:develop Aug 2, 2024
7 checks passed
@imikejackson imikejackson deleted the topic/misc_updates branch August 2, 2024 13:49
imikejackson added a commit to imikejackson/simplnx that referenced this pull request Oct 20, 2024
… when resizing (BlueQuartzSoftware#1026)

- ENH: Fix compile warnings in FilterUtilities. 
- Init array in DataStore when resizing
- Changes to compile under Xcode 14.2.
    #include <bit> with bit_cast<> was not instroduced until Xcode 14.3 which requires
macOS 13.x (Ventura)

--------

Signed-off-by: Michael Jackson <[email protected]>
Signed-off-by: Jared Duffey <[email protected]>
Co-authored-by: Jared Duffey <[email protected]>
Co-authored-by: Nathan Young <[email protected]>
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.

3 participants