diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-06-05 23:09:24 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-06-05 23:09:24 +0200 |
commit | d80e49d7b6da04efac6ece21497d32b14abb089f (patch) | |
tree | 2ba477d7059c4f435654ec55bdea77473b805564 /test/locale-mbwc/tst_mbrtowc.c | |
parent | 84b58ef8701d3d7d6071b391196ee78556f724df (diff) |
test: quieten some gcc warnings
Fix some gcc warnings while compiling the testsuite.
Diffstat (limited to 'test/locale-mbwc/tst_mbrtowc.c')
-rw-r--r-- | test/locale-mbwc/tst_mbrtowc.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/test/locale-mbwc/tst_mbrtowc.c b/test/locale-mbwc/tst_mbrtowc.c index 3a6070a87..b6247ce8c 100644 --- a/test/locale-mbwc/tst_mbrtowc.c +++ b/test/locale-mbwc/tst_mbrtowc.c @@ -16,7 +16,7 @@ tst_mbrtowc (FILE * fp, int debug_flg) char w_flg, s_flg; char *s; size_t n; - char t_flg, t_ini; + char t_flg; static mbstate_t t = { 0 }; mbstate_t *pt; wchar_t wc, *pwc, wc_ex; @@ -42,7 +42,6 @@ tst_mbrtowc (FILE * fp, int debug_flg) s = TST_INPUT_SEQ (mbrtowc).s; n = TST_INPUT_SEQ (mbrtowc).n; t_flg = TST_INPUT_SEQ (mbrtowc).t_flg; - t_ini = TST_INPUT_SEQ (mbrtowc).t_init; pwc = (w_flg == 0) ? NULL : &wc; if (s_flg == 0) @@ -56,12 +55,6 @@ tst_mbrtowc (FILE * fp, int debug_flg) } pt = (t_flg == 0) ? NULL : &t; -#if 0 - if (t_ini != 0) - { - memset (&t, 0, sizeof (t)); - } -#endif TST_CLEAR_ERRNO; ret = mbrtowc (pwc, s, n, pt); TST_SAVE_ERRNO; |