From 30f8e5751d8c9bfb20912ebb1686fe43e51416b3 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Fri, 28 Jul 2017 14:27:33 -0400 Subject: [PATCH] Makefile simplify colorecho for CI --- Makefile | 7 ++++--- msg/templates/uorb/microRTPS_client.cpp.template | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index b9651ae783..d4cf3e24cf 100644 --- a/Makefile +++ b/Makefile @@ -138,10 +138,11 @@ define cmake-build +@(cd $(BUILD_DIR) && $(PX4_MAKE) $(PX4_MAKE_ARGS) $(ARGS)) endef +COLOR_BLUE = \033[0;34m +NO_COLOR = \033[m + define colorecho -+@tput setaf 6 -+@echo $1 -+@tput sgr0 ++@echo "${COLOR_BLUE}${1} ${NO_COLOR}" endef # Get a list of all config targets. diff --git a/msg/templates/uorb/microRTPS_client.cpp.template b/msg/templates/uorb/microRTPS_client.cpp.template index 52c97f8db3..edb4ae8302 100644 --- a/msg/templates/uorb/microRTPS_client.cpp.template +++ b/msg/templates/uorb/microRTPS_client.cpp.template @@ -154,7 +154,7 @@ static int parse_options(int argc, char *argv[]) } @[if send_topics]@ -void* send(void*) +void* send(void* /*unused*/) { char data_buffer[BUFFER_SIZE] = {}; uint64_t sent = 0, total_sent = 0;