From bc1c927952461c4de921677446e614527987ac98 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 20 Feb 2017 21:44:01 +0100 Subject: [PATCH] util/TimeFormat: suppress -Wunused on Windows --- src/util/TimeParser.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util/TimeParser.cxx b/src/util/TimeParser.cxx index a644bf9cf..1a3417928 100644 --- a/src/util/TimeParser.cxx +++ b/src/util/TimeParser.cxx @@ -60,6 +60,8 @@ ParseTimePoint(const char *s, const char *format) #ifdef WIN32 /* TODO: emulate strptime()? */ + (void)s; + (void)format; throw std::runtime_error("Time parsing not implemented on Windows"); #else struct tm tm;