From 47f1a92cc4c3c7056f4172974f10a8dd402cf55c Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Mon, 4 Apr 2016 14:34:28 -0700 Subject: fixes for cppcheck lint warnings Refine the linting behavior. Fix several of the, mostly trivial, lint errors. --- src/wgetopt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wgetopt.cpp') 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] == ':') -- cgit v1.2.3