This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]