diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-12-21 23:27:17 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-12-21 23:27:17 +0100 |
| commit | a1dc9c98ac983b5e7e580ce6639f30830aa66cca (patch) | |
| tree | 52ac91e0bc3468d6d3f39ec9831d9bdffc4d2e52 /src | |
| parent | dcd8bf5d1833a1859c73da94822e545d9708006d (diff) | |
Fix another unused variable warning.
Diffstat (limited to 'src')
| -rw-r--r-- | src/raw_convert.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/raw_convert.h b/src/raw_convert.h index 7d53e10..5d115ac 100644 --- a/src/raw_convert.h +++ b/src/raw_convert.h @@ -20,6 +20,7 @@ #ifndef LIBSUB_RAW_CONVERT_H #define LIBSUB_RAW_CONVERT_H +#include "util.h" #include <boost/static_assert.hpp> #include <iomanip> @@ -30,12 +31,13 @@ namespace sub { */ template <typename P, typename Q> P -raw_convert (Q v, int precision = 16) +raw_convert (Q, int precision = 16) { /* We can't write a generic version of raw_convert; all required versions must be specialised. */ BOOST_STATIC_ASSERT (sizeof (Q) == 0); + LIBSUB_UNUSED (precision); } template <> |
