aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/wgetopt.cpp
diff options
context:
space:
mode:
authorGravatar Kurtis Rader <krader@skepticism.us>2016-04-04 14:34:28 -0700
committerGravatar Kurtis Rader <krader@skepticism.us>2016-04-04 14:34:28 -0700
commit47f1a92cc4c3c7056f4172974f10a8dd402cf55c (patch)
tree34bf83341006081f8a07bc6ca77cac03c603eb97 /src/wgetopt.cpp
parent0953590cca7cdc2dab75af5a85c8e2f15d4b8ab2 (diff)
fixes for cppcheck lint warnings
Refine the linting behavior. Fix several of the, mostly trivial, lint errors.
Diffstat (limited to 'src/wgetopt.cpp')
-rw-r--r--src/wgetopt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wgetopt.cpp b/src/wgetopt.cpp
index c2905ab0..7951eaea 100644
--- a/src/wgetopt.cpp
+++ b/src/wgetopt.cpp
@@ -515,7 +515,7 @@ int wgetopter_t::_wgetopt_internal(int argc, wchar_t **argv, const wchar_t *opts
{
if (wopterr)
{
- fwprintf(stderr, _(L"%ls: Invalid option -- %lc\n"), argv[0], c);
+ fwprintf(stderr, _(L"%ls: Invalid option -- %lc\n"), argv[0], (wint_t)c);
}
woptopt = c;
@@ -554,7 +554,7 @@ int wgetopter_t::_wgetopt_internal(int argc, wchar_t **argv, const wchar_t *opts
{
/* 1003.2 specifies the format of this message. */
fwprintf(stderr, _(L"%ls: Option requires an argument -- %lc\n"),
- argv[0], c);
+ argv[0], (wint_t)c);
}
woptopt = c;
if (optstring[0] == ':')