aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:16 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:16 +0200
commit8a5109483dc2d705cf927ab107f2b4a8e8008415 (patch)
treeb09952445af92583b68bbe61d5361e74f548e74f /src
parente056ff2b0246a6207c45ed005033b15b84ebfef1 (diff)
downloadmpd-8a5109483dc2d705cf927ab107f2b4a8e8008415.tar.gz
mpd-8a5109483dc2d705cf927ab107f2b4a8e8008415.tar.xz
mpd-8a5109483dc2d705cf927ab107f2b4a8e8008415.zip
made "sample_size" static const
sample_size is a variable which is computed at compile time. Declare it "static const", so the compiler can optimize it away.
Diffstat (limited to '')
-rw-r--r--src/audioOutputs/audioOutput_jack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audioOutputs/audioOutput_jack.c b/src/audioOutputs/audioOutput_jack.c
index 955eccd0b..8818bb739 100644
--- a/src/audioOutputs/audioOutput_jack.c
+++ b/src/audioOutputs/audioOutput_jack.c
@@ -27,7 +27,7 @@
#include <jack/types.h>
#include <jack/ringbuffer.h>
-size_t sample_size = sizeof(jack_default_audio_sample_t);
+static const size_t sample_size = sizeof(jack_default_audio_sample_t);
typedef struct _JackData {
/* configuration */