Skip to content

Instantly share code, notes, and snippets.

@Yatekii
Last active September 13, 2020 19:13
Show Gist options
  • Save Yatekii/f3ec4c93ad0055334144befbda83eb03 to your computer and use it in GitHub Desktop.
Save Yatekii/f3ec4c93ad0055334144befbda83eb03 to your computer and use it in GitHub Desktop.
*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'midi_sequencer'
compiling main.c...
../Src/sequencer.h(19): error: #94-D: the size of an array must be greater than zero
seq_param[PARAM_LEN] = SEQ_MAXLEN;
../Src/sequencer.h(19): error: #77-D: this declaration has no storage class or type specifier
seq_param[PARAM_LEN] = SEQ_MAXLEN;
../Src/sequencer.h(19): error: #147: declaration is incompatible with "int8_t seq_param[2]" (declared at line 18)
seq_param[PARAM_LEN] = SEQ_MAXLEN;
../Src/sequencer.h(19): warning: #520-D: initialization with "{...}" expected for aggregate object
seq_param[PARAM_LEN] = SEQ_MAXLEN;
../Src/sequencer.h(20): error: #77-D: this declaration has no storage class or type specifier
seq_param[PARAM_TRANSP] = 0;
../Src/sequencer.h(20): error: #147: declaration is incompatible with "int8_t seq_param[2]" (declared at line 19)
seq_param[PARAM_TRANSP] = 0;
../Src/sequencer.h(20): error: #148: variable "seq_param" has already been initialized
seq_param[PARAM_TRANSP] = 0;
../Src/sequencer.h(20): warning: #520-D: initialization with "{...}" expected for aggregate object
seq_param[PARAM_TRANSP] = 0;
../Src/sequencer.h(52): error: #94-D: the size of an array must be greater than zero
seq_param[PARAM_LEN] = 27;
../Src/sequencer.h(52): error: #77-D: this declaration has no storage class or type specifier
seq_param[PARAM_LEN] = 27;
../Src/sequencer.h(52): error: #147: declaration is incompatible with "int8_t seq_param[2]" (declared at line 19)
seq_param[PARAM_LEN] = 27;
../Src/sequencer.h(52): error: #148: variable "seq_param" has already been initialized
seq_param[PARAM_LEN] = 27;
../Src/sequencer.h(52): warning: #520-D: initialization with "{...}" expected for aggregate object
seq_param[PARAM_LEN] = 27;
../Src/main.c: 3 warnings, 10 errors
"midi_sequencer\midi_sequencer.axf" - 10 Error(s), 3 Warning(s).
#include <stdint.h>
#include "midi.h"
#define MAX(a, b) ((a)>(b)?(a):(b))
#define MIN(a, b) ((a)<(b)?(a):(b))
extern uint8_t flag_update_display;
#define SEQ_MAXLEN 64
#define SEQ_N_PARAM 2
char seq_param_name[SEQ_N_PARAM][11] = {{"Length "}, {"Transpose"}};
#define PARAM_LEN 0
#define PARAM_TRANSP 1
int8_t seq_param[SEQ_N_PARAM];
seq_param[PARAM_LEN] = SEQ_MAXLEN;
seq_param[PARAM_TRANSP] = 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment