Author Topic: GCC compiler switchs  (Read 2007 times)

sethjackson

  • Guest
GCC compiler switchs
« on: July 31, 2006, 03:26:44 am »
I think I may have found a bug.

I turned the -Wmain switch on (for a C++ program).

GCC (or Code::Blocks or...) balked at me saying that switch was only for Obj-C/C.
So I think it is a bug? I have looked on the GCC website, and it seems to me that it is for Obj-C/C/C++  :?

http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5242
Re: GCC compiler switchs
« Reply #1 on: July 31, 2006, 10:08:28 am »
checking the docs, it's a vlid c++ switch. So if CB complains about it, it's because GCC did.
I can confirm (GCC 3.4.5), I think you should file this to the GCC guys.

Or their code is wrong or their docs.

sethjackson

  • Guest
Re: GCC compiler switchs
« Reply #2 on: July 31, 2006, 03:23:01 pm »
checking the docs, it's a vlid c++ switch. So if CB complains about it, it's because GCC did.
I can confirm (GCC 3.4.5), I think you should file this to the GCC guys.

Or their code is wrong or their docs.

Mk that is what I thought. :P