Aschref Ben Thabet
916d8fed42
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;
| ^~~~~~
2020-10-14 10:54:23 -04:00
..
2020-10-14 10:54:06 -04:00
2018-01-17 11:47:29 -06:00
2018-03-14 10:46:32 -05:00
2020-10-14 10:54:10 -04:00
2018-01-17 11:47:30 -06:00
2016-02-25 15:04:19 -05:00
2018-01-17 11:47:29 -06:00
2020-10-14 10:54:10 -04:00
2018-01-17 11:47:29 -06:00
2017-07-05 14:40:02 +02:00
2016-04-04 10:25:27 -05:00
2020-10-14 10:54:23 -04:00
2020-10-14 10:54:12 -04:00
2018-10-11 08:29:16 +02:00
2017-11-22 14:10:37 -05:00
2018-01-17 11:47:29 -06:00
2020-10-14 10:53:58 -04:00
2016-03-17 21:08:54 -05:00
2018-06-18 18:45:44 +02:00
2020-10-14 10:54:10 -04:00
2018-01-17 11:47:29 -06:00
2018-01-17 11:47:29 -06:00
2020-10-14 10:53:54 -04:00
2020-10-14 10:53:54 -04:00
2018-01-17 11:47:29 -06:00
2018-09-06 14:11:45 +02:00
2020-10-14 10:53:54 -04:00
2018-02-16 12:16:07 +01:00
2019-01-23 10:46:24 +01:00
2016-11-22 14:21:35 +01:00
2020-10-14 10:53:57 -04:00
2018-03-15 09:25:45 -05:00
2020-10-14 10:54:10 -04:00
2018-01-17 11:47:13 -06:00
2020-10-14 10:53:58 -04:00
2018-01-17 11:47:29 -06:00
2018-01-17 11:47:29 -06:00
2018-01-17 11:47:29 -06:00
2016-10-25 16:24:05 +02:00
2018-01-17 11:47:29 -06:00
2020-10-14 10:54:10 -04:00
2020-10-14 10:53:54 -04:00
2020-10-14 10:53:54 -04:00
2020-10-14 10:53:54 -04:00
2016-04-04 10:25:29 -05:00
2016-03-29 14:43:55 +02:00
2015-10-13 17:52:34 -04:00
2020-10-14 10:53:54 -04:00
2020-10-14 10:54:10 -04:00
2020-10-14 10:53:54 -04:00
2020-10-14 10:53:54 -04:00
2013-11-23 22:39:34 +00:00