docopt.cpp icon indicating copy to clipboard operation
docopt.cpp copied to clipboard

Unused variable in `Option::parse`

Open var-const opened this issue 3 years ago • 0 comments

The following variable appears to be unused: https://github.com/docopt/docopt.cpp/blob/400e6dd8e59196c914dcc2c56caf7dae7efa5eb3/docopt_private.h#L549

For context, I work on libc++ and we are considering enabling the unused variable warnings for some standard library types, including std::string. This produces a warning on your project and could potentially break some of the users (if they compile with warnings as errors), so we wanted to give you an early heads-up. The fix appears to be straightforward.

var-const avatar Oct 13 '22 04:10 var-const