Newer gcc swallow version control keywords

Newer gcc swallow version control keywords

Oleg Goldshmidt pub at goldshmidt.org
Tue Oct 18 15:29:21 IST 2011


> I understood his intention differently. He used his "trick" not just in main,
> but also in every file in his example.

Yes, it does  not matter. As I said, he adds an attempt to *refer* to
the global variable in main() to make it "used".

> Did you actually check this in C++?

Yes.

> But in any case your original question was
> about C, not C++.

It was about C++. C and C++ compilers behave the same.

-- 
Oleg Goldshmidt | oleg at goldshmidt.org



More information about the Linux-il mailing list