From b477936716cc57a79956216488b4be6e28a12cc8 Mon Sep 17 00:00:00 2001 From: Olli Parviainen Date: Sun, 2 Apr 2023 18:48:28 +0300 Subject: [PATCH] Resolve gcc compiler warnings in ARM environment --- source/SoundStretch/WavFile.cpp | 2 +- source/SoundTouch/FIRFilter.cpp | 1 + source/SoundTouch/TDStretch.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/SoundStretch/WavFile.cpp b/source/SoundStretch/WavFile.cpp index 459e2ed..b21e72f 100644 --- a/source/SoundStretch/WavFile.cpp +++ b/source/SoundStretch/WavFile.cpp @@ -450,7 +450,7 @@ int WavInFile::read(float *buffer, int maxElems) int WavInFile::eof() const { // return true if all data has been read or file eof has reached - return (dataRead == header.data.data_len || feof(fptr)); + return ((uint)dataRead == header.data.data_len || feof(fptr)); } diff --git a/source/SoundTouch/FIRFilter.cpp b/source/SoundTouch/FIRFilter.cpp index 473ca07..27b4362 100644 --- a/source/SoundTouch/FIRFilter.cpp +++ b/source/SoundTouch/FIRFilter.cpp @@ -283,6 +283,7 @@ void * FIRFilter::operator new(size_t) FIRFilter * FIRFilter::newInstance() { + __attribute__((unused)) uint uExtensions; uExtensions = detectCPUextensions(); diff --git a/source/SoundTouch/TDStretch.cpp b/source/SoundTouch/TDStretch.cpp index 157f0e4..231f72c 100644 --- a/source/SoundTouch/TDStretch.cpp +++ b/source/SoundTouch/TDStretch.cpp @@ -750,6 +750,7 @@ void * TDStretch::operator new(size_t) TDStretch * TDStretch::newInstance() { + __attribute__((unused)) uint uExtensions; uExtensions = detectCPUextensions();