From e20a286b5ece1eb8620b06db5edaf6d474fae482 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Tue, 20 Nov 2001 21:25:14 +0000 Subject: [PATCH] ICU-900 Fixed some compiler warnings X-SVN-Rev: 7029 --- icu4c/source/extra/ustdio/sscanf.c | 2 +- icu4c/source/extra/ustdio/uscanf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/extra/ustdio/sscanf.c b/icu4c/source/extra/ustdio/sscanf.c index 46dbb3d16d..60f3832476 100644 --- a/icu4c/source/extra/ustdio/sscanf.c +++ b/icu4c/source/extra/ustdio/sscanf.c @@ -1245,7 +1245,7 @@ u_vsscanf_u(UChar *buffer, /* skip the argument, if necessary */ if(spec.fSkipArg) - va_arg(ap, int); + args.ptrValue = va_arg(ap, int*); handlerNum = (uint16_t)(spec.fInfo.fSpec - USCANF_BASE_FMT_HANDLERS); if (handlerNum < USCANF_NUM_FMT_HANDLERS) { diff --git a/icu4c/source/extra/ustdio/uscanf.c b/icu4c/source/extra/ustdio/uscanf.c index 64efd8f134..f487e8262c 100644 --- a/icu4c/source/extra/ustdio/uscanf.c +++ b/icu4c/source/extra/ustdio/uscanf.c @@ -1258,7 +1258,7 @@ u_vfscanf_u( UFILE *f, /* skip the argument, if necessary */ if(spec.fSkipArg) - va_arg(ap, int); + args.ptrValue = va_arg(ap, int*); handlerNum = (uint16_t)(spec.fInfo.fSpec - USCANF_BASE_FMT_HANDLERS); if (handlerNum < USCANF_NUM_FMT_HANDLERS) {