1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-13 22:21:11 +02:00

Fix some warnings for unused variables and labels...

... But not in cases where a return status is ignored.
This commit is contained in:
Paul Licameli
2016-09-18 10:59:50 -04:00
parent 54c993c4f5
commit 53936ac970
6 changed files with 10 additions and 10 deletions

View File

@@ -51,7 +51,7 @@ wxString PlatformCompatibility::ConvertSlashInFileName(const wxString& filePath)
wxString path = filePath;
wxString filename;
wxString newPath = filePath;
int pathLen = 1;
// int pathLen = 1;
while (!wxDirExists(wxPathOnly(newPath)) && ! path.IsEmpty()) {
path = newPath.BeforeLast('/');
filename = newPath.AfterLast('/');

View File

@@ -181,9 +181,9 @@ ODLock &AudacityProject::AllProjectDeleteMutex()
};
#if defined(__WXMAC__)
const int sbarSpaceWidth = 15;
const int sbarControlWidth = 16;
const int sbarExtraLen = 1;
// const int sbarSpaceWidth = 15;
// const int sbarControlWidth = 16;
// const int sbarExtraLen = 1;
const int sbarHjump = 30; //STM: This is how far the thumb jumps when the l/r buttons are pressed, or auto-scrolling occurs -- in pixels
#elif defined(__WXMSW__)
const int sbarSpaceWidth = 16;
@@ -414,7 +414,7 @@ public:
bool OnDrop(wxCoord x, wxCoord y) override
{
bool foundSupported = false;
// bool foundSupported = false;
#if !wxCHECK_VERSION(3, 0, 0)
bool firstFileAdded = false;
OSErr result;

View File

@@ -1753,7 +1753,7 @@ void AudioUnitEffect::SetHostUI(EffectUIHostInterface *host)
bool AudioUnitEffect::PopulateUI(wxWindow *parent)
{
OSStatus result;
// OSStatus result;
mDialog = static_cast<wxDialog *>(wxGetTopLevelParent(parent));
mParent = parent;

View File

@@ -392,7 +392,7 @@ int QTImportFileHandle::Import(TrackFactory *trackFactory,
}
} while (false);
done:
// done:
if (maer) {
MovieAudioExtractionEnd(maer);
@@ -441,7 +441,7 @@ void QTImportFileHandle::AddMetadata(Tags *tags)
for (int i = 0; i < WXSIZEOF(names); i++) {
QTMetaDataItem item = kQTMetaDataItemUninitialized;
OSType key = names[i].key;
// OSType key = names[i].key;
err = QTMetaDataGetNextItem(metaDataRef,
kQTMetaDataStorageFormatWildcard,

View File

@@ -832,7 +832,7 @@ void ToolDock::Updated()
//
void ToolDock::OnGrabber( GrabberEvent & event )
{
auto pos = event.GetPosition();
// auto pos = event.GetPosition();
if (!event.IsEscaping()) {
ToolBar *t = mBars[ event.GetId() ];

View File

@@ -55,7 +55,7 @@ enum {
};
static const double MinStutter = 0.2;
static const double MaxDragSpeed = 1.0;
// static const double MaxDragSpeed = 1.0;
namespace {
double FindScrubbingSpeed(const ViewInfo &viewInfo, double maxScrubSpeed, double screen, double timeAtMouse)