summaryrefslogtreecommitdiff
path: root/src/locale_convert.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-12-03 10:53:42 +0100
committerCarl Hetherington <cth@carlh.net>2020-12-03 10:53:42 +0100
commitdcd8bf5d1833a1859c73da94822e545d9708006d (patch)
tree2e412bbf4cd03331cca8357a8f9d420cbac0d93b /src/locale_convert.h
parentfd87fad1f1152892735d8a3e08c47847f5d83066 (diff)
Fix some unused variable warnings.
Diffstat (limited to 'src/locale_convert.h')
-rw-r--r--src/locale_convert.h5
1 files changed, 4 insertions, 1 deletions
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 <boost/static_assert.hpp>
#include <string>
@@ -24,12 +25,14 @@ namespace sub {
template <typename P, typename Q>
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 <>