From 90ba4e5dcad7add798986e493c9b8972bdaf43fe Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 3 Jan 2018 23:48:50 +0100 Subject: Don't define cur_setting in header file The object cur_setting was defined in core/pref.h. Instead, declare it as extern and define it in core/parse.c. This silences a compiler warning, since inclusion of core/pref.h would define the object, which was then left unused in tests/testparse.cpp. Signed-off-by: Berthold Stoeger --- core/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/parse.c') diff --git a/core/parse.c b/core/parse.c index 5743be3c6..48e62c2e0 100644 --- a/core/parse.c +++ b/core/parse.c @@ -16,7 +16,7 @@ int metric = 1; int diveid = -1; event_allocation_t event_allocation = { .event.deleted = 1 }; - +struct parser_settings cur_settings; struct divecomputer *cur_dc = NULL; struct dive *cur_dive = NULL; -- cgit v1.2.3-70-g09d2