Fix some unused variable warnings.
authorCarl Hetherington <cth@carlh.net>
Thu, 3 Dec 2020 09:53:42 +0000 (10:53 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 3 Dec 2020 09:53:42 +0000 (10:53 +0100)
src/locale_convert.h
src/util.h

index c5112689c086206fd76cc3adda4ca14f50ece715..ffbec0de5bcdd52fd9ca56cff871129a9da39853 100644 (file)
@@ -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 <>
index 56e649f0070714daa27a1c55831a30244ec0b575..fbf0fa6ed529a6fa85a44f139809f0608751902e 100644 (file)
@@ -25,6 +25,8 @@
 #include <boost/shared_ptr.hpp>
 #include <string>
 
+#define LIBSUB_UNUSED(x) (void)(x)
+
 namespace sub {
 
 class Reader;