2 Replies - 1729 Views - Last Post: 11 December 2011 - 07:23 PM

#1 r.stiltskin  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1833
  • View blog
  • Posts: 4,927
  • Joined: 27-December 05

gcc compiler warnings

Posted 11 December 2011 - 02:10 PM

I just noticed that gcc/g++ doesn't give warnings about implicit conversions to int from double, etc., unless you specify a -Wconversion flag. It's not included in -Wall or -Wextra. Seems to me that I used to see those warnings without using that flag, but I'm not sure how long ago that was, or with which compiler.

Just thought I'd mention it...
Is This A Good Question/Topic? 0
  • +

Replies To: gcc compiler warnings

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6066
  • View blog
  • Posts: 23,526
  • Joined: 23-August 08

Re: gcc compiler warnings

Posted 11 December 2011 - 05:49 PM

My version of gcc seems to indicate that it's not included in -Wall.

gcc version 4.2.1 (Apple Inc. build 5664)


Got to admit I've never really delved that deeply into the man page and options; I've just pretty much always used -Wall -pedantic.
Was This Post Helpful? 0
  • +
  • -

#3 ishkabible  Icon User is offline

  • spelling expret
  • member icon




Reputation: 1622
  • View blog
  • Posts: 5,709
  • Joined: 03-August 09

Re: gcc compiler warnings

Posted 11 December 2011 - 07:23 PM

i just click all the stuff in code::blocks. it gives me pretty decent warnings, i might add -Wconversion now that you mention it.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1