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:
parent
e056ff2b02
commit
8a5109483d
@ -27,7 +27,7 @@
|
|||||||
#include <jack/types.h>
|
#include <jack/types.h>
|
||||||
#include <jack/ringbuffer.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 {
|
typedef struct _JackData {
|
||||||
/* configuration */
|
/* configuration */
|
||||||
|
Loading…
Reference in New Issue
Block a user