diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-12-03 10:53:42 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-12-03 10:53:42 +0100 |
| commit | dcd8bf5d1833a1859c73da94822e545d9708006d (patch) | |
| tree | 2e412bbf4cd03331cca8357a8f9d420cbac0d93b /src | |
| parent | fd87fad1f1152892735d8a3e08c47847f5d83066 (diff) | |
Fix some unused variable warnings.
Diffstat (limited to 'src')
| -rw-r--r-- | src/locale_convert.h | 5 | ||||
| -rw-r--r-- | src/util.h | 2 |
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 <> @@ -25,6 +25,8 @@ #include <boost/shared_ptr.hpp> #include <string> +#define LIBSUB_UNUSED(x) (void)(x) + namespace sub { class Reader; |
