This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/8714: gcc bug: complaint on %c for strftime
- From: Andries dot Brouwer at cwi dot nl
- To: Andries dot Brouwer at cwi dot nl, bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Thu, 5 Dec 2002 01:20:26 +0100 (MET)
- Subject: Re: c/8714: gcc bug: complaint on %c for strftime
> Could you please post a self-contained testcase
#include <time.h>
int main() { strftime((char *)0,0,"%c",(struct tm *)0); return 0; }
% gcc -Wall strftime.c
strftime.c: In function `main':
strftime.c:2: warning: `%c' yields only last 2 digits of year in some locales