summaryrefslogtreecommitdiff
path: root/src
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
parentfd87fad1f1152892735d8a3e08c47847f5d83066 (diff)
Fix some unused variable warnings.
Diffstat (limited to 'src')
-rw-r--r--src/locale_convert.h5
-rw-r--r--src/util.h2
2 files changed, 6 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 <>
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 <boost/shared_ptr.hpp>
#include <string>
+#define LIBSUB_UNUSED(x) (void)(x)
+
namespace sub {
class Reader;