suppress warnings due to 3rd party code

This commit is contained in:
Stefano D'Angelo 2024-02-06 11:53:00 +01:00
parent 5629b9d0b6
commit 6465f53a7e
2 changed files with 8 additions and 2 deletions

View File

@ -33,7 +33,7 @@ endif
PROGRAM = ${BUNDLE_NAME}${EXE_SUFFIX}
C_SRCS = ${COMMON_DIR}/src/main.c ${TINYWAV_DIR}/tinywav.c ${MIDI_PARSER_DIR}/src/midi-parser.c ${C_SRCS_EXTRA}
C_SRCS = ${COMMON_DIR}/src/main.c ${MIDI_PARSER_DIR}/src/midi-parser.c ${C_SRCS_EXTRA}
C_OBJS = $(addprefix build/obj/, $(notdir $(C_SRCS:.c=.o)))
CXX_SRCS = ${CXX_SRCS_EXTRA}
@ -42,7 +42,7 @@ CXX_OBJS = $(addprefix build/obj/, $(notdir $(CXX_SRCS:.cpp=.o)))
all: build/${PROGRAM}
ifeq ($(CXX_OBJS),)
build/${PROGRAM}: ${C_OBJS} | build
build/${PROGRAM}: ${C_OBJS} build/obj/tinywav.o | build
${CC} $^ -o $@ ${CFLAGS_ALL} ${LDFLAGS_ALL}
else
build/${PROGRAM}: ${C_OBJS} ${CXX_OBJS} | build
@ -69,6 +69,9 @@ endif
PERCENT := %
build/obj/tinywav.o: ${TINYWAV_DIR}/tinywav.c
${CC} $^ -o $@ -c ${CFLAGS_ALL} -Wno-unused-result
$(C_OBJS): build/obj/%.o: $$(filter $$(PERCENT)/$$(basename $$(notdir $$@)).c,$$(C_SRCS)) | build/obj
${CC} $^ -o $@ -c ${CFLAGS_ALL}

View File

@ -2,7 +2,10 @@
#include <stdlib.h>
#include <string.h>
#include <math.h>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
#include "vst3_c_api.h"
#pragma GCC diagnostic pop
#include "data.h"
#include "plugin.h"