[soxr] patch potentially uninitialized variable, remove build warning

This commit is contained in:
Thijs Withaar 2019-06-04 22:08:33 +02:00
parent 93b9320fe4
commit f884a9e2ea
3 changed files with 28 additions and 0 deletions

View 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;

View 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

View File

@ -28,6 +28,9 @@ vcpkg_extract_source_archive_ex(
# PATCHES # PATCHES
# 001_port_fixes.patch # 001_port_fixes.patch
# 002_more_port_fixes.patch # 002_more_port_fixes.patch
PATCHES
001_initialize-resampler.patch
002_disable_warning.patch
) )
vcpkg_configure_cmake( vcpkg_configure_cmake(