Package: manpages-dev Version: 4.08-1 Severity: normal Dear Maintainer,
In example from man mbstowcs there is an error. If we compile it, we get the following output: $ gcc example.c example.c: In function ‘main’: example.c:67:21: warning: implicit declaration of function ‘iswalpha’ [-Wimplicit-function-declaration] if (!iswalpha(*wp)) ^~~~~~~~ example.c:72:24: warning: implicit declaration of function ‘iswupper’ [-Wimplicit-function-declaration] if (iswupper(*wp)) ^~~~~~~~ example.c:75:24: warning: implicit declaration of function ‘iswlower’ [-Wimplicit-function-declaration] if (iswlower(*wp)) ^~~~~~~~ Now we add "#include <wctype.h>" to the beginning of this example and the warning disappears. But there is another trouble. If we compile with "-Wconversion" gcc option, we get this output: $ gcc -Wconversion example.c example.c: In function ‘main’: example.c:68:30: warning: conversion to ‘wint_t {aka unsigned int}’ from ‘wchar_t {aka int}’ may change the sign of the result [-Wsign-conversion] if (!iswalpha(*wp)) ^ example.c:72:29: warning: conversion to ‘wint_t {aka unsigned int}’ from ‘wchar_t {aka int}’ may change the sign of the result [-Wsign-conversion] if (iswalpha(*wp)) { ^ example.c:73:33: warning: conversion to ‘wint_t {aka unsigned int}’ from ‘wchar_t {aka int}’ may change the sign of the result [-Wsign-conversion] if (iswupper(*wp)) ^ example.c:76:33: warning: conversion to ‘wint_t {aka unsigned int}’ from ‘wchar_t {aka int}’ may change the sign of the result [-Wsign-conversion] if (iswlower(*wp)) ^ -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages manpages-dev depends on: ii manpages 4.08-1 manpages-dev recommends no packages. Versions of packages manpages-dev suggests: ii man-db [man-browser] 2.7.5-1 -- no debconf information