mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 02:57:09 +01:00
[soxr] patch potentially uninitialized variable, remove build warning
This commit is contained in:
parent
93b9320fe4
commit
f884a9e2ea
13
ports/soxr/001_initialize-resampler.patch
Normal file
13
ports/soxr/001_initialize-resampler.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/src/soxr.c b/src/soxr.c
|
||||
index c2861ac..c95cfd4 100644
|
||||
--- a/src/soxr.c
|
||||
+++ b/src/soxr.c
|
||||
@@ -815,7 +815,7 @@ soxr_error_t soxr_oneshot(
|
||||
soxr_quality_spec_t const * q_spec,
|
||||
soxr_runtime_spec_t const * runtime_spec)
|
||||
{
|
||||
- soxr_t resampler;
|
||||
+ soxr_t resampler = NULL;
|
||||
soxr_error_t error = q_spec? q_spec->e : 0;
|
||||
if (!error) {
|
||||
soxr_quality_spec_t q_spec1;
|
12
ports/soxr/002_disable_warning.patch
Normal file
12
ports/soxr/002_disable_warning.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff --git a/src/pffft.c b/src/pffft.c
|
||||
index 46c841e..0686bef 100644
|
||||
--- a/src/pffft.c
|
||||
+++ b/src/pffft.c
|
||||
@@ -182,7 +182,6 @@ typedef float32x4_t v4sf;
|
||||
# define VALIGNED(ptr) ((((long)(ptr)) & 0x3) == 0)
|
||||
#else
|
||||
# if !defined(PFFFT_SIMD_DISABLE)
|
||||
-# warning "building with simd disabled !\n";
|
||||
# define PFFFT_SIMD_DISABLE /* fallback to scalar code */
|
||||
# endif
|
||||
#endif
|
@ -28,6 +28,9 @@ vcpkg_extract_source_archive_ex(
|
||||
# PATCHES
|
||||
# 001_port_fixes.patch
|
||||
# 002_more_port_fixes.patch
|
||||
PATCHES
|
||||
001_initialize-resampler.patch
|
||||
002_disable_warning.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
|
Loading…
x
Reference in New Issue
Block a user