From 302564444383169087fbbec36983789abbac9aa5 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Thu, 14 Feb 2013 02:32:22 +0000 Subject: build: avoid link failure in devmsg() on older linkers On linkers that don't remove unused functions, there will be a reference to a missing dev_debug symbol in the devmsg() function. So for now ... * src/system.h: ... move devmsg() from here ... * src/numfmt.c: ... to here, and document future cleanup. * src/factor.c: Likewise. --- src/system.h | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/system.h') diff --git a/src/system.h b/src/system.h index 6c310ad2c..1677999ef 100644 --- a/src/system.h +++ b/src/system.h @@ -649,21 +649,6 @@ stzncpy (char *restrict dest, char const *restrict src, size_t len) return dest; } -/* Like error(0, 0, ...), but without an implicit newline. - Also a noop unless the global DEV_DEBUG is set. */ -extern bool dev_debug; -static inline void -devmsg (char const *fmt, ...) -{ - if (dev_debug) - { - va_list ap; - va_start (ap, fmt); - vfprintf (stderr, fmt, ap); - va_end (ap); - } -} - #ifndef ARRAY_CARDINALITY # define ARRAY_CARDINALITY(Array) (sizeof (Array) / sizeof *(Array)) #endif -- cgit v1.2.3-54-g00ecf