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: Fri, 14 Apr 2017 08:50:59 -0700 Organization: None to speak of Lines: 28 Message-ID: References: <49quec1a81m1hnbja9vqcj12j2appsmm2n@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="87b6161aa899ca9c7c893fe10ff12fc6"; logging-data="11412"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+KfCM2369XDdkRMK7hVaWn" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:do/q+3uaB9rO8K1IEvrlBYr0Hic= sha1:eoudaq3Hkg7pWt91k/NcO4x6fMI= Xref: csiph.com comp.lang.c:108133 MehdiAmini writes: > On 04/13/2017 04:58 PM, Barry Schwarz wrote: >> On Thu, 13 Apr 2017 14:44:02 +0430, MehdiAmini >> wrote: > > [...] > >>> What to do to fix the warnings? >> >> This warning is an optional feature of your compiler. If you do not >> want it, you should not specify the option that activates it. >> Alternately, you could specify the option that deactivates it. How to >> perform either action is a discussion for a group where your compiler >> is topical. This has nothing to do with the C language itself. > > For my Clang compiler, three #pragma did the job to deactivate it in a > certain place. What #pragma? Why can't you just invoke the compiler without the "-Wdate-time" option, or with "-Wno-date-time"? -- 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"