diff options
author | Aschref Ben Thabet <aschref.ben-thabet@embedded-brains.de> | 2020-07-16 11:28:49 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2020-07-16 12:27:38 +0300 |
commit | 0ee972d1b095bfea89499b358646e44d60aa4a4b (patch) | |
tree | 9e0a54391b8ffcaed2ed20c83589c2eefe55299c /winsup | |
parent | 52ad92e1b65d640d625f67dbd87e8193c3409db5 (diff) |
ctype.h: Fix unused variable warnings
If __HAVE_LOCALE_INFO__ is not defined, then the locale in the
locale-specific ctype functions is ignored. In the previous
implementation this resulted in compiler warnings. For example:
int main()
{
locale_t locale;
locale = duplocale(uselocale((locale_t)0));
isspace_l('x', locale);
return 0;
}
gcc -Wall main.c
main.c: In function 'main':
main.c:6:11: warning: variable 'locale' set but not used [-Wunused-but-set-variable]
6 | locale_t locale;
| ^~~~~~
Diffstat (limited to 'winsup')
0 files changed, 0 insertions, 0 deletions