Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 6/6] decr and tmp are only used when HAVE_STRFTIME is defined, strict compilers will complain
- X-seq: zsh-workers 32737
- From: Nikolas Garofil <nikolas@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 6/6] decr and tmp are only used when HAVE_STRFTIME is defined, strict compilers will complain
- Date: Sat, 7 Jun 2014 19:18:55 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=w7UIpcWNeMvwWV9JvI909c8kMuDu8dTJ7OxmgVjK0SQ=; b=bhHUTpxnpfYS9zNIX2AyskN5rRFll+yz86TWSH6L/7NyaYMa/ZhbQ3CwsFjXnPAiUb AK11JEq5oTjatZC3YsEKMYd7JwTJbq7nZwbQZozTl10AnjAq9rrZxg1zaATCQGS2o29G ju2ASAIGtHAXB4rT7sdWfaXoe97SqemXlpiEu0GYQU7ATcThPtd9/5nVRQX8VheoX8z3 dkH0IW7oZhNezcvlAxLn9/8Uy2Yd3kw6i0i8iRjPknEmUVnxLvCWufdlHYAHJfbjInhK RxWuaukIDqMpy+uyjnR2WZ/J2gIPvS0tbi3n8gj2n8g7IvwqGfqGzg0YV7aUBtdnpp7t rOmg==
- In-reply-to: <1402161535-20756-1-git-send-email-nikolas@garofil.be>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1402161535-20756-1-git-send-email-nikolas@garofil.be>
- Sender: Nikolas Garofil <nikolas.garofil@xxxxxxxxx>
---
Src/utils.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/Src/utils.c b/Src/utils.c
index 59b9435..cef2abe 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -2712,8 +2712,11 @@ ztrftimebuf(int *bufsizeptr, int decr)
mod_export int
ztrftime(char *buf, int bufsize, char *fmt, struct tm *tm)
{
- int hr12, decr;
-#ifndef HAVE_STRFTIME
+ int hr12;
+#ifdef HAVE_STRFTIME
+ int decr;
+ char tmp[4];
+#else
static char *astr[] =
{"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
static char *estr[] =
@@ -2721,7 +2724,6 @@ ztrftime(char *buf, int bufsize, char *fmt, struct tm *tm)
"Aug", "Sep", "Oct", "Nov", "Dec"};
#endif
char *origbuf = buf;
- char tmp[4];
while (*fmt)
--
1.8.3.2
Messages sorted by:
Reverse Date,
Date,
Thread,
Author