diff --git a/src/AutoRecovery.cpp b/src/AutoRecovery.cpp index 0b803db2f..461f50022 100644 --- a/src/AutoRecovery.cpp +++ b/src/AutoRecovery.cpp @@ -655,7 +655,7 @@ bool AutoSaveFile::Decode(const wxString & fileName) // "" somewhere. const int bufsize = 16; char buf[bufsize + 1]; - if (file.SeekEnd(-bufsize) != wxInvalidOffset) + if (file.SeekEnd(-bufsize)) { if (file.Read(buf, bufsize) == bufsize) { @@ -663,7 +663,7 @@ bool AutoSaveFile::Decode(const wxString & fileName) if (strstr(buf, "") == 0) { // End of file does not contain closing tag, so add it - if (file.Seek(0, wxFromEnd) != wxInvalidOffset) + if (file.Seek(0, wxFromEnd)) { strcpy(buf, "\n"); file.Write(buf, strlen(buf)); diff --git a/src/effects/Echo.cpp b/src/effects/Echo.cpp index 919ac83b3..15a88a8ca 100644 --- a/src/effects/Echo.cpp +++ b/src/effects/Echo.cpp @@ -32,8 +32,8 @@ // Define keys, defaults, minimums, and maximums for the effect parameters // // Name Type Key Def Min Max Scale -Param( Delay, float, XO("Delay"), 1.0, 0.001, FLT_MAX, 1 ); -Param( Decay, float, XO("Decay"), 0.5, 0.0, FLT_MAX, 1 ); +Param( Delay, float, XO("Delay"), 1.0f, 0.001f, FLT_MAX, 1.0f ); +Param( Decay, float, XO("Decay"), 0.5f, 0.0f, FLT_MAX, 1.0f ); EffectEcho::EffectEcho() { diff --git a/src/effects/nyquist/Nyquist.cpp b/src/effects/nyquist/Nyquist.cpp index de73c784c..2456b5a64 100644 --- a/src/effects/nyquist/Nyquist.cpp +++ b/src/effects/nyquist/Nyquist.cpp @@ -1848,7 +1848,7 @@ void NyquistEffect::BuildEffectWindow(ShuttleGui & S) S.AddSpace(10, 10); wxArrayString choices = wxStringTokenize(ctrl.label, wxT(",")); - wxChoice *item = S.Id(ID_Choice + i).AddChoice(wxT(""), wxT(""), &choices); + S.Id(ID_Choice + i).AddChoice(wxT(""), wxT(""), &choices); } else {