summaryrefslogtreecommitdiff
path: root/libc/misc/time
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-06-01 22:11:07 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-06-01 22:11:07 +0000
commit0119403c3acb30557f5efdf8aacb378bed6a6e8e (patch)
treea0d059772e9590f4816df40aaaf856dbc13ebf37 /libc/misc/time
parenteed923be3e7e81a8d812bd224c138dee5e20f95f (diff)
suppress a few "might be used uninitialized" warnings. No code growth.
Diffstat (limited to 'libc/misc/time')
-rw-r--r--libc/misc/time/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/misc/time/time.c b/libc/misc/time/time.c
index 012176c81..0108e0f61 100644
--- a/libc/misc/time/time.c
+++ b/libc/misc/time/time.c
@@ -673,7 +673,7 @@ static int tm_isdst(register const struct tm *__restrict ptm,
{
long sec;
int i, isdst, isleap, day, day0, monlen, mday;
- int oday; /* Note: oday can be uninitialized. */
+ int oday = oday; /* ok to be uninitialized, shutting up compiler warning */
isdst = 0;
if (r[1].tzname[0] != 0) {
@@ -2133,7 +2133,7 @@ struct tm attribute_hidden *_time_t2tm(const time_t *__restrict timer,
{
register int *p;
time_t t1, t, v;
- int wday; /* Note: wday can be uninitialized. */
+ int wday = wday; /* ok to be uninitialized, shutting up warning */
{
register const uint16_t *vp;