Skip to content

Minor Issue: Compiler warnings about unused parameter #158

Closed
@mateofio

Description

@mateofio

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) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions