Re: gcc gets in the way of writing C that is also C++ wrt const

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jay K <jay.krell@xxxxxxxxxxx> writes:

> C:\>gcc -c 1.c
> 1.c:1: warning: `b' initialized and declared `extern'
>
>  
> Why the warning?

Because it's usually not what you want when writing C.

The warning is disabled if you use the -Wc++-compat option.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux