Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: How to fix warning: [-Wdate-time] Date: Mon, 17 Apr 2017 08:09:04 -0700 Organization: None to speak of Lines: 18 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="6ede04a56392f1431524e35eef643cab"; logging-data="16572"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/R+MsomzsZ44fElR2almUD" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:LbU/XFbdUyihPafZqvgJixDAYzY= sha1:il6RacKV9P8iHyziH+0K6a0vD40= Xref: csiph.com comp.lang.c:108204 MehdiAmini writes: [...] > warning: expansion of date or time macro is not reproducible [-Wdate-time] > fprintf(stderr,"DATE:%s\n",__DATE__); > ^ > warning: expansion of date or time macro is not reproducible [-Wdate-time] > fprintf(stderr,"TIME:%s\n",__TIME__); > > What to do to fix the warnings? Can you explain clearly why you're using the -Wdate-time option in the first place? -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"