Re: Compiler Warnings

From: Mike Wahler (mkwahler_at_mkwahler.net)
Date: 12/14/03


Date: Sun, 14 Dec 2003 18:14:21 GMT


"News" <jakle1@hotmail.com> wrote in message
news:BRxCb.493$xH2.345752@news1.news.adelphia.net...
> I'm new to c and gcc. I was wondering if anyone can point me to a web page
> or book that has a list of the warning messages and their meanings.

The content and meanings of compiler warning (and error) messages
are unique to each compiler.

>
> Are the warnings the same no matter what compiler you use,

No.

> or are they
> different for each compiler?

Yes.

>I have looked all over the gcc web site, but I
> can't find anything that explains what the warnings are.

I suggest you read more closely :-). I'm sure the gcc manual
has these descriptions.

Also, if you have some code that's producing a warning you don't
understand, you can post it here and others will probably be able
to spot the trouble. But only post enough code to demonstrate the
problem.

>
> If someone could take the time to help me out and direct me to some info
> about this, I'd appriciate it.

Any questions about gcc, I'd direct to the gnu web site and/or newsgroups.

-Mike



Relevant Pages

  • New C compiler and analyzer lang/cparser in ports
    ... A few days ago libFIRMand cparser were added to the ports tree. ... If you want to see, what other compilers besides GCC have to offer, this might be of interest for you. ... cparser is a C compiler providing many useful warnings and uses libFIRM for optimization and code generation. ... format.c:5: warning: argument type 'int' does not match conversion specifier '%u' at position 1 ...
    (freebsd-hackers)
  • RE: k3b-mp3 for x86_64?
    ... configure:2310: checking for gcc ... configure:2619: checking for C compiler default output file name ... conftest.c:20: warning: "struct stat" declared inside parameter list ... declaration, which is probably not what you want ...
    (Fedora)
  • Re: [PATCH -mm 1/2] 3c59x: Fix uninitialized variable bug
    ... On Tue, 4 Sep 2007, Mark Hindley wrote: ... Probably a compiler ... GCC versions fail to warn about uninitialized variables cases. ... there is no warning with gcc ...
    (Linux-Kernel)
  • Re: Compiling chbg: cant find gdk/gdk.h
    ... problem is that the compiler cant find the include file gdk.h. ... checking for gcc... ... checking for Imlib2 configuration using imlib2-config script ... ... absimg.h:70: warning: data definition has no type or storage class ...
    (alt.os.linux)
  • Re: Just what makes an architecture "C Friendly"?
    ... sure it means "friendly environment in which to implement a GCC ... So you've got several meanings here: ... target with the minimal effort. ... architecture for which there is no C compiler you probably consider ...
    (comp.arch.embedded)