On 08/11/2011 01:31 AM, Michael Schreckenbauer wrote:
> Hi Walt,

>> Hm.  I know I've seen compiler redefinition messages thousands of times
>> over the years.

> Maybe what you saw as a warning was some kind of macro redefined.
> 
> ~ $ cat bar.c
> #define BAR 0
> #define BAR 1
> 
> int main()
> {
> }
> 
> ~$gcc bar.c -o bar
> bar.c:2:0: warning: "BAR" redefined
> bar.c:1:0: note: this is the location of the previous definition

Yes!  I spent an hour writing variations on the theme, trying to
reproduce that warning, and failed.  Thanks for clearing that up :)



Reply via email to