Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor Issue: Compiler warnings about unused parameter #158

Closed
fmatthew5876 opened this issue May 8, 2015 · 1 comment
Closed

Minor Issue: Compiler warnings about unused parameter #158

fmatthew5876 opened this issue May 8, 2015 · 1 comment

Comments

@fmatthew5876
Copy link

Trying to compile cppformat in my project produces a compiler warning about an unused parameter.

Below is a quick fix. Alternatively you can do (void)values; in the function body.

diff --git a/format.h b/format.h
index 9e68867..51ec420 100644
--- a/format.h
+++ b/format.h
@@ -1484,7 +1484,7 @@ inline void set_types(Value *, const Args & ...) {
}

 template <typename Char, typename Value>
-inline void store_args(Value *values) {}
+inline void store_args(Value *) {}

 template <typename Char, typename Arg, typename T, typename... Args>
 inline void store_args(Arg *args, const T &arg, const Args & ... tail) {
@vitaut
Copy link
Contributor

vitaut commented May 8, 2015

Should be fixed in c150722. Thanks!

@vitaut vitaut closed this as completed May 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants