Repository navigation
Fix warnings - #301
Merged
Merged
Fix warnings#301
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #301 +/- ##
==========================================
+ Coverage 89.39% 89.41% +0.01%
==========================================
Files 1313 1313
Lines 170989 171245 +256
==========================================
+ Hits 152854 153116 +262
+ Misses 18135 18129 -6 see 5 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request contains several targeted improvements and refactorings across the Metal backend, audio parameter tests, and test utilities. The main themes are improved compatibility with Metal API availability, safer and clearer type usage, and enhanced test robustness.
Metal API Compatibility and Type Safety
GpuCounterSampleBufferPoolclass inyup_GpuDevice_metal.cppto remove the class-levelAPI_AVAILABLEannotation, replacing it with method-level annotations. The class now uses more genericidtypes for Metal objects, improving compatibility and clarity, especially regarding API availability on different macOS/iOS versions. [1] [2] [3] [4]GpuComputePassImplMetalconstructor and related function inyup_GpuComputePass_metal.cppto accept a genericidforpassDescriptorinstead ofMTLComputePassDescriptor*, reflecting that the class only exists from macOS 11/iOS 14 and improving API usage safety. [1] [2]Test Improvements and Type Consistency
parameteraccessor in audio parameter test classes to return aconst AudioParameter::Ptr&instead of a copy, ensuring efficient and safer access to test parameters inyup_AudioParameterBindingProvider.cppandyup_AudioParameterAttachment.cpp. [1] [2]GpuPipelineGLSamplerTestsinyup_GpuPipeline.cppby usingstd::array<uint8_t, 4>for sampler pairs, making the test more type-safe and readable.<array>include inyup_GpuPipeline.cppto support the above change.Build and Warning Suppression
-W#warningsdiagnostic insqlite3_library.cfor clang builds to reduce build noise.