suppress warnings due to 3rd party code
This commit is contained in:
parent
5629b9d0b6
commit
6465f53a7e
@ -33,7 +33,7 @@ endif
|
|||||||
|
|
||||||
PROGRAM = ${BUNDLE_NAME}${EXE_SUFFIX}
|
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)))
|
C_OBJS = $(addprefix build/obj/, $(notdir $(C_SRCS:.c=.o)))
|
||||||
|
|
||||||
CXX_SRCS = ${CXX_SRCS_EXTRA}
|
CXX_SRCS = ${CXX_SRCS_EXTRA}
|
||||||
@ -42,7 +42,7 @@ CXX_OBJS = $(addprefix build/obj/, $(notdir $(CXX_SRCS:.cpp=.o)))
|
|||||||
all: build/${PROGRAM}
|
all: build/${PROGRAM}
|
||||||
|
|
||||||
ifeq ($(CXX_OBJS),)
|
ifeq ($(CXX_OBJS),)
|
||||||
build/${PROGRAM}: ${C_OBJS} | build
|
build/${PROGRAM}: ${C_OBJS} build/obj/tinywav.o | build
|
||||||
${CC} $^ -o $@ ${CFLAGS_ALL} ${LDFLAGS_ALL}
|
${CC} $^ -o $@ ${CFLAGS_ALL} ${LDFLAGS_ALL}
|
||||||
else
|
else
|
||||||
build/${PROGRAM}: ${C_OBJS} ${CXX_OBJS} | build
|
build/${PROGRAM}: ${C_OBJS} ${CXX_OBJS} | build
|
||||||
@ -69,6 +69,9 @@ endif
|
|||||||
|
|
||||||
PERCENT := %
|
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
|
$(C_OBJS): build/obj/%.o: $$(filter $$(PERCENT)/$$(basename $$(notdir $$@)).c,$$(C_SRCS)) | build/obj
|
||||||
${CC} $^ -o $@ -c ${CFLAGS_ALL}
|
${CC} $^ -o $@ -c ${CFLAGS_ALL}
|
||||||
|
|
||||||
|
@ -2,7 +2,10 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wpedantic"
|
||||||
#include "vst3_c_api.h"
|
#include "vst3_c_api.h"
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
#include "data.h"
|
#include "data.h"
|
||||||
#include "plugin.h"
|
#include "plugin.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user