🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51207

printf warning don't understand ?

#51207
From: Ewen Macdonald
Date: Tue, 15 Jun 1993 23:19
21 lines
1319 bytes
I am using Linux and gcc version 2.3.3 when I compile some of
my own code I get something like the following warning (with -Wall) 
on my printf statements 

  using l type variable with f type variable 

the printf statement is

  fprintf(stderr, "...%lf\n", d);

where d is declared as a double

I am running on a 386SX

Thanks for any help
Ewen Macdonald
ewenm@mullian.ee.mu.oz.au
         | Ewen Macdonald, The University of Melbourne,       |
         | Department of Electrical & Electronic Engineering, |
         | Photonics Research Laboratory,                     |
         | email: ewenm@mullian.ee.mu.OZ.AU                   |
Technical Details
Message-ID: <ewenm.740186362@mullian.ee.Mu.OZ.AU>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!yale.edu!nigel.msen.com!emory!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!caen!batcomputer!munnari.oz.au!cs.mu.OZ.AU!ewenm

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,19ec225eb59a80b4,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-06-15 16:52:35 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!yale.edu!nigel.msen.com!emory!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!caen!batcomputer!munnari.oz.au!cs.mu.OZ.AU!ewenm
From: ewenm@ee.mu.OZ.AU (Ewen Macdonald)
Subject: printf warning don't understand ?
Message-ID: <ewenm.740186362@mullian.ee.Mu.OZ.AU>
Sender: news@cs.mu.OZ.AU
Organization: Computer Science, University of Melbourne, Australia
Date: Tue, 15 Jun 1993 23:19:22 GMT
Lines: 21