This is the mail archive of the
mailing list for the GCC project.
Re: #pragma once
"Daniel Sievers" <DSievers@nvidia.com> writes:
> What is the status and plans about further supporting or removing the
> "#pragma once" feature?
> Is it possible that you remove the warning: "#pragma once is obsolete"
> in future gcc versions or add a switch to disable it?
See http://gcc.gnu.org/gcc-3.4/changes.html, particularly:
* File handling in the preprocessor has been rewritten. GCC no
longer gets confused by symlinks and hardlinks, and now has a
correct implementation of #import and #pragma once. These two
directives have therefore been un-deprecated.