summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/libc/strptime.cc2
2 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 506388119..4256a1184 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2005-11-18 Christopher Faylor <cgf@timesys.com>
+ * strptime.cc (_strptime): Fix gcc warnings.
+
+2005-11-18 Christopher Faylor <cgf@timesys.com>
+
* memmem.cc: Move from here.
* lib/memmem.cc: Move to here.
diff --git a/winsup/cygwin/libc/strptime.cc b/winsup/cygwin/libc/strptime.cc
index 007815ce5..e81cdd580 100644
--- a/winsup/cygwin/libc/strptime.cc
+++ b/winsup/cygwin/libc/strptime.cc
@@ -311,6 +311,7 @@ label:
case 'A':
case 'a':
+ len = 0;
for (i = 0; i < asizeof(tptr->weekday); i++) {
len = strlen(tptr->weekday[i]);
if (strncasecmp(buf, tptr->weekday[i],
@@ -400,6 +401,7 @@ label:
case 'B':
case 'b':
case 'h':
+ len = 0;
for (i = 0; i < asizeof(tptr->month); i++) {
if (Oalternative) {
if (c == 'B') {