fixed stupid bug causing a warning

master
Ondřej Hruška 9 years ago
parent daf9a3c2a5
commit 195132e829
  1. 2
      Makefile
  2. 2
      main.c
  3. 2
      source/scpi_builtins.c
  4. 1
      source/scpi_parser.h

@ -14,8 +14,6 @@ CFLAGS += -Wall -Wextra -Wshadow
CFLAGS += -Wwrite-strings -Wold-style-definition -Winline
CFLAGS += -Wredundant-decls -Wfloat-equal -Wsign-compare -Wunused-function
# gcc bug?
CFLAGS += -Wno-missing-braces
all: $(SRC) $(HDRS)
gcc $(CFLAGS) $(SRC) -o main.elf

@ -123,5 +123,5 @@ const SCPI_command_t scpi_commands[] = {
.levels = {"USeRERRor"},
.callback = cmd_USRERR_cb
},
{0} // end marker
{/*END*/}
};

@ -476,7 +476,7 @@ const SCPI_command_t scpi_commands_builtin[] = {
.callback = builtin_STAT_PRES
},
{0} // end marker
{/*END*/}
};

@ -57,6 +57,7 @@ typedef struct {
void (*blob_callback)(const uint8_t *bytes);
} SCPI_command_t;
// ---------------- USER CONFIG ----------------
// Zero terminated command struct array - must be defined.

Loading…
Cancel
Save