* libc/stdlib/btowc.c (btowc): Cast to avoid compiler warning.
* libc/search/hash_buf.c (__get_buf): Initialize local vars to avoid compiler warning. * libc/stdio/fgets.c (_fgets_r): Ditto. * libc/time/strftime.c (strftime): Ditto.
This commit is contained in:
parent
76c4e21b49
commit
b2bde18ba5
@ -1,3 +1,11 @@
|
||||
2012-08-10 Corinna Vinschen <vinschen@redhat.com>
|
||||
|
||||
* libc/stdlib/btowc.c (btowc): Cast to avoid compiler warning.
|
||||
* libc/search/hash_buf.c (__get_buf): Initialize local vars to avoid
|
||||
compiler warning.
|
||||
* libc/stdio/fgets.c (_fgets_r): Ditto.
|
||||
* libc/time/strftime.c (strftime): Ditto.
|
||||
|
||||
2012-08-10 Corinna Vinschen <vinschen@redhat.com>
|
||||
|
||||
* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Fix guard around state to
|
||||
|
@ -119,8 +119,8 @@ __get_buf(hashp, addr, prev_bp, newpage)
|
||||
{
|
||||
BUFHEAD *bp;
|
||||
__uint32_t is_disk_mask;
|
||||
int is_disk, segment_ndx;
|
||||
SEGMENT segp;
|
||||
int is_disk, segment_ndx = 0;
|
||||
SEGMENT segp = NULL;
|
||||
|
||||
is_disk = 0;
|
||||
is_disk_mask = 0;
|
||||
|
@ -102,7 +102,7 @@ _DEFUN(_fgets_r, (ptr, buf, n, fp),
|
||||
#ifdef __SCLE
|
||||
if (fp->_flags & __SCLE)
|
||||
{
|
||||
int c;
|
||||
int c = 0;
|
||||
/* Sorry, have to do it the slow way */
|
||||
while (--n > 0 && (c = __sgetc_r (ptr, fp)) != EOF)
|
||||
{
|
||||
|
@ -23,7 +23,8 @@ btowc (int c)
|
||||
|
||||
_REENT_CHECK_MISC(_REENT);
|
||||
|
||||
retval = __mbtowc (_REENT, &pwc, &b, 1, __locale_charset (), &mbs);
|
||||
retval = __mbtowc (_REENT, &pwc, (const char *) &b, 1,
|
||||
__locale_charset (), &mbs);
|
||||
|
||||
if (retval != 0 && retval != 1)
|
||||
return WEOF;
|
||||
|
@ -693,7 +693,7 @@ _DEFUN (strftime, (s, maxsize, format, tim_p),
|
||||
#endif /* !_WANT_C99_TIME_FORMATS */
|
||||
{
|
||||
size_t count = 0;
|
||||
int i, len;
|
||||
int i, len = 0;
|
||||
const CHAR *ctloc;
|
||||
#if defined (MAKE_WCSFTIME) && !defined (__HAVE_LOCALE_INFO_EXTENDED__)
|
||||
CHAR ctlocbuf[CTLOCBUFLEN];
|
||||
|
Loading…
Reference in New Issue
Block a user