From dcd8bf5d1833a1859c73da94822e545d9708006d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 3 Dec 2020 10:53:42 +0100 Subject: Fix some unused variable warnings. --- src/locale_convert.h | 5 ++++- src/util.h | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/locale_convert.h b/src/locale_convert.h index c511268..ffbec0d 100644 --- a/src/locale_convert.h +++ b/src/locale_convert.h @@ -17,6 +17,7 @@ */ +#include "util.h" #include #include @@ -24,12 +25,14 @@ namespace sub { template P -locale_convert (Q x, int precision = 16, bool fixed = false) +locale_convert (Q, int precision = 16, bool fixed = false) { /* We can't write a generic version of locale_convert; all required versions must be specialised. */ BOOST_STATIC_ASSERT (sizeof (Q) == 0); + LIBSUB_UNUSED(precision); + LIBSUB_UNUSED(fixed); } template <> diff --git a/src/util.h b/src/util.h index 56e649f..fbf0fa6 100644 --- a/src/util.h +++ b/src/util.h @@ -25,6 +25,8 @@ #include #include +#define LIBSUB_UNUSED(x) (void)(x) + namespace sub { class Reader; -- cgit v1.2.3