diff --git a/src/Printing.cpp b/src/Printing.cpp index 1b5ddbf9b..a4191b8ef 100644 --- a/src/Printing.cpp +++ b/src/Printing.cpp @@ -32,8 +32,8 @@ #include "Printing.h" // Globals, so that we remember settings from session to session -wxPrintData *gPrintData = NULL; -wxPageSetupData *gPageSetupData = NULL; +static wxPrintData *gPrintData = NULL; +static wxPageSetupData *gPageSetupData = NULL; class AudacityPrintout : public wxPrintout { diff --git a/src/Project.cpp b/src/Project.cpp index df59a7aa0..562c7ee6a 100644 --- a/src/Project.cpp +++ b/src/Project.cpp @@ -2282,7 +2282,7 @@ void AudacityProject::OpenFiles(AudacityProject *proj) // Most of this string was duplicated 3 places. Made the warning consistent in this global. // The %s is to be filled with the version string. -wxString gsLegacyFileWarning = +static wxString gsLegacyFileWarning = _("This file was saved by Audacity version %s. The format has changed. \ \n\nAudacity can try to open and save this file, but saving it in this \ \nversion will then prevent any 1.2 or earlier version opening it. \ diff --git a/src/SampleFormat.cpp b/src/SampleFormat.cpp index da1829aa6..a4ee58b8c 100644 --- a/src/SampleFormat.cpp +++ b/src/SampleFormat.cpp @@ -44,9 +44,9 @@ #include "Prefs.h" #include "Dither.h" -Dither::DitherType gLowQualityDither = Dither::none; -Dither::DitherType gHighQualityDither = Dither::none; -Dither gDitherAlgorithm; +static Dither::DitherType gLowQualityDither = Dither::none; +static Dither::DitherType gHighQualityDither = Dither::none; +static Dither gDitherAlgorithm; void InitDitherers() { diff --git a/src/Theme.cpp b/src/Theme.cpp index 46f89bea7..6b9c024ba 100644 --- a/src/Theme.cpp +++ b/src/Theme.cpp @@ -186,7 +186,7 @@ WX_DEFINE_USER_EXPORTED_OBJARRAY( ArrayOfColours ) #include "AllThemeResources.h" // Include the ImageCache... -unsigned char ImageCacheAsData[] = { +static unsigned char ImageCacheAsData[] = { #include "ThemeAsCeeCode.h" }; diff --git a/src/TrackPanel.cpp b/src/TrackPanel.cpp index 0916b38e7..b8c519a8d 100644 --- a/src/TrackPanel.cpp +++ b/src/TrackPanel.cpp @@ -7314,11 +7314,11 @@ wxString TrackPanel::TrackSubText(Track * t) /// Handle the menu options that change a track between /// left channel, right channel, and mono. -int channels[] = { Track::LeftChannel, Track::RightChannel, +static int channels[] = { Track::LeftChannel, Track::RightChannel, Track::MonoChannel }; -const wxChar *channelmsgs[] = { _("Left Channel"), _("Right Channel"), +static const wxChar *channelmsgs[] = { _("Left Channel"), _("Right Channel"), _("Mono") }; @@ -7592,7 +7592,7 @@ const int nRates=12; /// gRates MUST CORRESPOND DIRECTLY TO THE RATES AS LISTED IN THE MENU!! /// IN THE SAME ORDER!! -int gRates[nRates] = { 8000, 11025, 16000, 22050, 44100, 48000, 88200, 96000, +static int gRates[nRates] = { 8000, 11025, 16000, 22050, 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000 }; /// This method handles the selection from the Rate