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.
This commit is contained in:
Max Kellermann 2008-08-26 08:27:16 +02:00
parent e056ff2b02
commit 8a5109483d

View File

@ -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 */