bfgroup / Lyra

A simple to use, composable, command line parser for C++ 11 and beyond
https://bfgroup.github.io/Lyra/
Boost Software License 1.0
471 stars 56 forks source link

Supress warnings about unused parameters #41

Closed a-ludi closed 3 years ago

a-ludi commented 3 years ago

There are several warnings if compiling with -Wunused-variable. This is annoying because it cannot be bypassed since it's a header-only implementation. Therefore, I fixed these warning by adding (void) to the offending variables. This tells the compiler to assume we are using the variable.