Commit 8a510948 authored by Max Kellermann's avatar Max Kellermann

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.
parent e056ff2b
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment