This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH to control #pragma once warning with -Wno-deprecated


On Tue, 28 Jan 2003 21:55:41 +0000, Neil Booth <neil@daikokuya.co.uk> wrote:

> Mark Mitchell wrote:-
>
>> >Incidentally, apparently #pragma once shows up in VC++ headers, which
>> >would explain why people don't want to just fix their code.
>> 
>> Makes sense.
>
> Last time we discussed this DJ said that the MS headers all have header
> guards, and that #pragma once is protected by MSVER macros, so I doubt
> this is the reason someone wants it.

This does seem to be the reason people want gcc to shut up about it; I
suspect that ignoring it would be fine.  Apparently the Visual Studio IDE
adds it to source files without them asking.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]