1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-09 21:40:33 +02:00

Silence GCC warning.

* libguile/fports.c (scm_setvbuf): Initialize 'drained'.  GCC 4.9 raises
  a "may be used uninitialized warning" for 'drained', because it can't
  tell that 'drained' is initialized anytime NDRAINED > 0.
This commit is contained in:
Ludovic Courtès 2014-05-16 11:32:43 +02:00
parent 4338f2f91e
commit 5e793ad851

View file

@ -155,7 +155,7 @@ SCM_DEFINE (scm_setvbuf, "setvbuf", 2, 1, 0,
int cmode; int cmode;
long csize; long csize;
size_t ndrained; size_t ndrained;
char *drained; char *drained = NULL;
scm_t_port *pt; scm_t_port *pt;
scm_t_port_internal *pti; scm_t_port_internal *pti;