From 58980c72fabf80e569920c8d3546e763cf2fc3e7 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 22 Oct 2015 18:39:46 +0200 Subject: [PATCH] Misc. fixes to silence warnings when building a static Finit. Signed-off-by: Joachim Nilsson --- plugin.c | 3 +++ plugins/Makefile | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/plugin.c b/plugin.c index bcc58e60..30dc544e 100644 --- a/plugin.c +++ b/plugin.c @@ -321,7 +321,10 @@ int plugin_load_all(uev_ctx_t *ctx, char *path) /* Always initialize plugins */ init_plugins(ctx); + +#ifndef ENABLE_STATIC exit: +#endif if (verbose) print_result(fail); diff --git a/plugins/Makefile b/plugins/Makefile index 27383ab1..bc3a497f 100644 --- a/plugins/Makefile +++ b/plugins/Makefile @@ -14,7 +14,12 @@ endif include ../common.mk +ifneq ($(STATIC), 1) all: $(PLUGINS) +else +all: + @true +endif clean: -@$(RM) $(PLUGINS)