Skip to content

Fix warnings - #301

Merged
kunitoki merged 1 commit into
mainfrom
dev/fix_warnings
Dec 4, 2026
Merged

kunitoki merged 1 commit into
mainfrom
dev/fix_warnings

Conversation

@kunitoki

@kunitoki kunitoki commented Dec 4, 2026

Copy link
Copy Markdown
Owner

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

  • Refactored the GpuCounterSampleBufferPool class in yup_GpuDevice_metal.cpp to remove the class-level API_AVAILABLE annotation, replacing it with method-level annotations. The class now uses more generic id types for Metal objects, improving compatibility and clarity, especially regarding API availability on different macOS/iOS versions. [1] [2] [3] [4]
  • Updated the GpuComputePassImplMetal constructor and related function in yup_GpuComputePass_metal.cpp to accept a generic id for passDescriptor instead of MTLComputePassDescriptor*, reflecting that the class only exists from macOS 11/iOS 14 and improving API usage safety. [1] [2]

Test Improvements and Type Consistency

  • Changed the parameter accessor in audio parameter test classes to return a const AudioParameter::Ptr& instead of a copy, ensuring efficient and safer access to test parameters in yup_AudioParameterBindingProvider.cpp and yup_AudioParameterAttachment.cpp. [1] [2]
  • Improved the GpuPipelineGLSamplerTests in yup_GpuPipeline.cpp by using std::array<uint8_t, 4> for sampler pairs, making the test more type-safe and readable.
  • Added missing <array> include in yup_GpuPipeline.cpp to support the above change.

Build and Warning Suppression

  • Suppressed the -W#warnings diagnostic in sqlite3_library.c for clang builds to reduce build noise.

@codecov

codecov Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.41%. Comparing base (8bc8feb) to head (58172a6).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8bc8feb...58172a6. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kunitoki
kunitoki merged commit 825dbeb into main Dec 4, 2026
47 checks passed
@kunitoki
kunitoki deleted the dev/fix_warnings branch December 4, 2026 13:15
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.

1 participant