mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-09 12:01:15 +00:00
Suppress sqlite.c compile warnings with gcc 5.3
This commit is contained in:
parent
4fd86004ab
commit
f0d3dec67a
@ -143,11 +143,15 @@ $(OBJSDIR_TOOLS)/version.o: $(ALL_SOURCES) $(HDRS) version_servald.c version_str
|
||||
|
||||
#' <-- fixes vim syntax highlighting
|
||||
|
||||
# Compile SQLITE as a special case, because it is imported source code.
|
||||
# Instead of fixing warnings case-by-case in the sqlite.c source code, simply
|
||||
# suppress the classes of warnings that cause compilation errors with
|
||||
# -Werror.
|
||||
$(OBJSDIR_SERVALD)/sqlite3.o: sqlite-amalgamation-3100200/sqlite3.c Makefile
|
||||
@echo SERVALD CC $<
|
||||
@mkdir -p $(dir $@)
|
||||
@$(RM) $(@:.o=.gcno) $(@:.o=.gcda)
|
||||
@$(CC) $(CFLAGS) $(DEFS) -c $< -o $@
|
||||
@$(CC) $(CFLAGS) -Wno-unused-value -Wno-empty-body $(DEFS) -c $< -o $@
|
||||
|
||||
# No object files in source directory!
|
||||
%.o: %.c
|
||||
|
Loading…
x
Reference in New Issue
Block a user