commit f2cb49d30b404697e27e8b508a491c881536a697 parent f48d56ddeeddf74fd0ca588c3e91c5012b46efad Author: Martin Klöckner <mjkloeckner@gmail.com> Date: Thu, 6 Nov 2025 01:43:31 -0300 Add `-Wno-missing-field-initializers` to `CFLAGS` surpress `warning: missing initializer for field 'ticks'` Diffstat:
| M | Makefile | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile @@ -7,7 +7,8 @@ LIBS := $(SRC_DIR/*.h) OBJS := $(patsubst $(SRC_DIR)/%.c,$(BIN_DIR)/%.o,$(SRCS)) CC := avr-gcc -CFLAGS := -Wall -Wextra -pedantic -std=c99 -Os -mmcu=atmega328p +CFLAGS := -Wall -Wextra -Wno-missing-field-initializers \ + -pedantic -std=c99 -Os -mmcu=atmega328p .PHONY: all @@ -25,7 +26,8 @@ $(BIN_DIR)/main.hex: $(BIN_DIR)/main.elf avr-objcopy -O ihex -R .eeprom $(BIN_DIR)/main.elf $(BIN_DIR)/main.hex upload: $(BIN_DIR)/main.hex - avrdude -F -V -c arduino -p ATMEGA328P -P $(PORT) -b 115200 -U flash:w:$(BIN_DIR)/main.hex + avrdude -F -V -c arduino -p ATMEGA328P -P $(PORT) \ + -b 115200 -U flash:w:$(BIN_DIR)/main.hex $(BIN_DIR): @if [ ! -d "$(BIN_DIR)" ]; then \
